Creating Forms
485
4
In the Action field, specify the path to the URL where the processing script or
application that will process the form information resides, by doing one of
the following:
•
Click the folder icon, then navigate to the appropriate folder.
•
Type the complete path to the folder.
If you’re specifying a path to a CGI script, the path to the URL will look
similar to this example:
http://www.mysite.com/cgi-bin/process.cgi
5
In the Method pop-up menu, choose the method in which the form data will
be handled.
•
Choose
POST
to send the form values in the body of a message.
•
Choose
GET
to send information to the server with the submitted form values
appended to the URL.
Note:
Don’t use the
GET
method with long forms. URLs are limited to 8,192 characters;
if the amount of data sent is too long, data will be truncated, leading to unexpected
processing results. Nor should you use GET when dealing with credit card numbers or
other confidential information, as this method of passing information is not secure.
•
Choose Default to use the user’s browser default setting for sending form data
which is generally the
GET
method.
About form fields
Once you add
form
tags to your document you can start adding form objects. You
use form objects to request information from site visitors.
Use form fields when you want to set up a form in which visitors type their
response, such as their name and address. There are three types of fields you can
insert in a form—text fields (in which a user types a response), file fields (in which
a user enters the path of a file to upload to your server, and hidden fields (which
store information a user entered in another field).
As you add a field to a form you can set the field’s length, number of lines the field
contains, number of characters a user can enter, and whether the field is a
password field.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...