Build An Online Survey Using Dreamweaver
Build An Online Survey Using Dreamweaver
Build An Online Survey Using Dreamweaver
On the CD
Tutorial files:
Build an online survey
using Dreamweaver
Survey.php, register.
php. thankyou.php,
loginfailed.php & more!
Tutorial objective
Create a simple survey application
using the MX Kollection extensions
Time required
Let's see how the MX Kollection extensions can make PHP
One hour development with Dreamweaver simpler, by creating an online survey
Skill level
DREAMWEAVER COMES BUNDLED with a number of Dreamweaver for the PHP, ASP VB and ColdFusion Server
01 Create a database 02 The users table 03 The surveys table
Our questions and the responses made by the users need We are going to ask users to log in to complete the This table needs to hold the basic information about
to be stored in a MySQL database. Launch the MySQL survey, so we need to store the data for the users in a table. the surveys: a Primary Key (named surveyed), which we
commandline and log into your database server. Type: This table should contain the fields userID (which is the will use to link the surveys and the questions, the name
CREATE DATABASE dbSurveys; USE dbSurveyts; to create a primary key), username, userEmail and userPassword to of the survey and some introductory text to display,
database and switch to it. store the basic user details. explaining to the user what the survey is all about.
Server selection
■ With MX Kollection the Server
Behaviors are available from the
Server Behaviors Panel
Wizard registration
■ The registration form was inserted
by the MX Kollection Wizard, which
adds HTML and server-side code
Filing system
■ MX Kollection inserts a large
number of files into your site files
that must be uploaded
If you're having problems with Dreamweaver, don’t despair. Steve Jenkins is
here to resolve your design and development dilemmas
Quick linking an option it will take you straight to the
Q Instead of adding a host of links to a
page I want to use a drop-down menu to
HTML page or web address inserted into
Value. To format the text you will need to
accommodate the links and save space. I attach a stylesheet to the page and then
also want the text that appears in the drop- select a style from Class. Alternatively, you
down list to be the same style as the rest can create a single style just for the menu.
of the page. How do I get the form list to Select the menu, go to CSS Styles in the
redirect to a chosen page or website? CSS panel and click New CSS Rule. Set
Selector Type to Class, add a name and
When using a form list you will need to add Define in: This document only and press
Q the world of web design. However, I have only ever used the program to definition using the PHPMySQL server technology. This will also
create and design static sites, and now I’d like to start adding dynamic
elements. I know a database is needed, so I contacted my web hosting
company who told me how to set up a database with my account which
A include your FTP details so you can preview the updates you make
uses MySQL and PHP. How do I add the information to a page? to the page. Then you will have to create a new page using the PHP
extension and set the connection to your database server.