•
Test the connection, and if successful, finish completing the site creationwizard.
Forms
HTML forms allow users to enter data and then submit it. Forms actually consist of twoparts:
•
The web page that contains the form
•
A script or program that receives the data submitted by the form and processes itsomehow (writing the data to a database or emailing it are the most commonoptions, for example)Dreamweaver will automatically generate some scripting to assist you in this process, it isnot as easy to use as FrontPage, and it will not automatically generate an email. However,unlike Frontpage, Dreamweaver lets you see the script it generates, so you can beginlearning how to write your own scripts.In addition, ATS has loaded a couple of scripts onto the server that you can use as youare developing your forms, and let you email the results of the form.
Create a form:
Create a new form by choosing Insert > Form > Form. For now, ignore the FormProperties window; we will return to it in a moment. For design purposes, you may find ituseful to construct a table within the form. There a number of different types of formfields that you can use to gather data:
•
Text – allows entry of a single line of text
•
Textarea – large blocks of text
•
Radio Group – allows user to pick one of series of items
•
Check Box – allows user to select multiples items
•
List/menu – choose one (or more) from a drop down list
•
Hidden – used to pass values to the script that the user does not input
•
Button – usually used to Submit the form for processingOnce we design the form, we have to work on the backend, the script that will process thesubmitted data.Click on the dotted outline of the form to bring up the form properties. The Actionproperty tells the location of the script or program that will process the data. ATS hasloaded a couple of scripts onto the ETSU server that you may find useful. One simplyprints out the data that is sent by the form. This can be useful for testing your forms.Point your form to:http://www.etsu.edu/oit/ats/scripts/formtester.aspThe second script is used to
email the form data to an address you specify
. For this towork, you need to do two things:1)
Set the form action to: http://www.etsu.edu/oit/ats/scripts/formmail.asp
Leave a Comment
thanks you