HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Checkbox
Disable a Field
Field Length
Field Size
Hidden Field
Image Button
Initial Value
Password Field
Radio Button
Reset Button
Selection List
Submit Button
Text Field
Textarea
Hidden Field
289
Hidden Field
Description
The tag to put a hidden field on your web site is <INPUT TYPE="HIDDEN" NAME="X" VALUE="Y">. X is replaced with the name of the field. Y is replaced with the initial value of the field. The initial value is what it sent to the CGI script.
Code
<FORM METHOD="POST" ACTION="script.cgi">
<INPUT TYPE="HIDDEN" NAME="form1" VALUE="site">
</FORM>
Output
n/a
Practice
<FORM METHOD="POST" ACTION="script.cgi"> <INPUT TYPE="HIDDEN" NAME="form1" VALUE="site"> </FORM>
Advertisements