Hidden fields let you store information in a form that the user doesn't see, but will be included when the form is submitted. You can add a hidden field by clicking on a form with the right mouse button, then choosing "Form Properties...", then clicking the Advanced button. There seems to be a bug in FrontPage, in that if you add a hidden field then change the value associated with the field, the new value doesn't get saved. To fix this, you can edit the value with the Windows Notepad; here's how. - In FrontPage, choose View > Folders, then locate the page containing the form.
- Click on the page with the right mouse button. Choose "Open With...", then choose "Text Editor (notepad)".
- Once the form loads, choose Search > Find... in the Notepad to bring up the Find dialog box. Search for "hidden", and verify that you've found the correct HTML code for the hidden field. It will look something like this:
<input type="hidden" name="type" value="blue"> - Select the text for value (be careful not to select the quotes), then replace it with the value you want.
- Save the changes and close the Notepad. You can verify the change by opening the file in FrontPage, right-clicking on the form, then clicking the Advanced button.
<Back to table of contents> |