Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does input type="hidden" mean?

Status
Not open for further replies.

Beng79

Technical User
Jan 5, 2006
48
0
0
HK
Hi all,

<input type="hidden" name="FeatID" value="<% = rs("FeatID") %>

as of the code above, what is the meaning of input type="hidden"? When is it normally used in?

How is it different from input type="submit"?

Thank you
 
If you are using a web form, then you can use the input type=hidden to send a variable when you submit a form, but that variable is not shown on the form.
Code:
<FORM METHOD="GET">
<INPUT TYPE="HIDDEN" NAME="ONE" VALUE="HELLO">
<INPUT TYPE="TEXT" NAME="TWO">
<INPUT TYPE="SUBMIT>
</FORM>
So on screen you would get a box for the text part of the form and a submit button.
When you press submit the variable $_GET['ONE'] would contain HELLO annd $_GET['TWO'] should contain whatever you placed in thhe text box on the form. The sending of the variable ONE is hidden to the user of the web form.

Hope this helps.

------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla

roycrom :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top