GREATINTERNETPROOFING.COM

drownproofing class - www.greatinternetproofing.com

Menu


as usernames, passwords, and credit card information should be sent using POST. We'll leave our form's method set to POST. NOTE Even


POST isn't entirely secure. When using POST, form data is embedded into the HTTP headersit is not encrypted. An attacker can still compromise sensitive information using an HTPP packet sniffer. For this reason, sensitive data should always be transmitted using a secure connection (SSL).   Enctype: Choose an option from this menu to specify the MIME encoding type of the data submitted to the server for processing. By default, forms are sent using the application/x-www-form-urlencode type but it's not uncommon to use the multipart/form-data type, especially when uploading files using the File Field form object (see Part V for details). We'll leave this menu as is. Now that you have an idea about how forms are inserted into the page, let's divert our attention to inserting form objects into the form. The form objects you can insert in Dreamweaver include the following: Text Fields, Password Fields, and Textareas Check Boxes Radio Buttons and Radio Groups Lists and Menus Buttons File Fields Image Fields Hidden Fields Jump Menus Text Fields, Password Fields, and Textareas Arguably the most widely used form object is the Text Field. Because the Text Field is so versatile, it's the perfect option when you need to create a plain text box, a password text box, or a multiline text box where users can enter large amounts of information. To see the Text Field in action, follow these steps: 1. Place your cursor in the form and insert a new table by choosing the Table option from the Insert menu. Give the new table 9 rows, 2 columns, a width of 460 pixels, and a border thickness, cell padding, and cell spacing of 0 pixels. We'll use this table to cleanly position text labels and form objects on the page. 2. In the first three cells of the first column, add the text Employee Name:, Station ID:, and Problem Description: respectively. 3. Place your cursor in the first cell in the second column and insert a new Text Field form object by clicking the Text Field icon in the Insert bar. The new Text Field appears, similar to Figure 9.5. Figure 9.5. Add a new Text Field form object to the first cell in the second column of the table. [View full size image] NOTE After you click to insert the Text Field, by default, Dreamweaver displays accessibility options as they relate to form objects. If you don't want to work with Accessibility features at this point, you can turn off this dialog by navigating to the Preferences window (available from the Edit menu), choosing the Accessibility category, and disabling the Form Objects check box. More information on accessibility can be found in Appendix A, "Accessibility."   Selecting the Text Field in the cell changes the Properties Inspector to a text field-based Properties Inspector. This view exposes the following customizable properties: TextField name: Enter a value in this text box to uniquely identify the Text Field form object on the page. Although setting a value for this field isn't required, truthfully, there isn't much you can do if you don't set a value