Dreamweaver manual cs5

Page 37

Forms Creating HTML forms This section describes how to create HTML forms in Dreamweaver. You can also use Dreamweaver to create ASP.NET web forms. For more information, see Creating ASP.NET forms. To create an HTML form: 

Open a page and place the insertion point where you want the form to appear.

Select Insert > Form, or select the Forms category in the Insert bar and click the Form icon.

Dreamweaver inserts an empty form. With a page in Design view, forms are indicated by a dotted red outline. If you don’t see this outline, check that View > Visual Aids > Invisible Elements is selected. 

Specify the page or script that will process the form data. In the Document window, click the form outline to select the form. In the Property inspector (Window > Properties), type the path in the Property inspector’s Action text box. This will be the address of a form mail program or you may send data via email e.g. in the action box type the mailto protocol, followed by the email address of the person to receive the form data eg. mailto:student@hotmail.com

Specify the method to use to transmit the form data to the server. In the Property inspector, select one of the following options in the Method pop-up menu: POST embeds the form data in the HTTP request. GET appends it to the URL (suggest you will you POST as GET can be seen in address bar).

Page 36


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.