Dreamweaver - Forms - Adding a hidden field
Go to the forms tab on the Insert menu:

Click on the icon to create a new form. In Design view, the form is outlined by a dashed red line.
Once you've created a form, move your cursor inside the form area. Then click on the icon to create a new hidden field. Hidden fields can be used to store data on a page. For example, if you have several webpages that all send information to one script, you may want to use a hidden field to distinguish which page is sending the information.
If you want to change the properties of the hidden field, right click on it and select what you want to edit.
Selecting "Name..." pops up a window that allows you to change the name of the hidden field.
Selecting "Value..." pops up a window that allows you to change the value of the hidden field.
Selecting "Edit Tag <input>..." allows you to change all of the attributes at once:
- The "Type" dropdown menu lets you change it from a hidden field to a radio button or any other kind of form element.
- The "Name" and "Value" fields let you change the name and the value associated with that name.
Select "Edit Tag Code <input>..." if you want to edit the tag properties by hand.
Alternatively, you can change the properties of the hidden field through the properties menu:
- The box under the word "HiddenField" on the left is the name of the hidden field.
- The box labeled "Value" is the value associated with the hidden field.
|
|