Submitting hidden form field.
This is useful when pass values in a form that you don?t want the users to see.
It is done by using the hidden form field.
Syntax:
<input type="hidden" name="name_of_field" value="value_to_pass">
form1.cfm
|
< form action="form2.cfm" method="post" name="form1">< cfset hidden_text = "This is the text in the variable hidden_text.">< input type="hidden" name="hidden1" value="<cfoutput>#hidden_text#</cfoutput>">< input type="hidden" name="hidden2" value="This is the text in hidden input named hidden2.">< br>< input name="upload_person" type="submit" id="upload_person" value="Submit -->"></ form> |
form2.cfm
|
hidden1: <cfoutput>#Form.hidden1#</cfoutput>< br>hidden2: <cfoutput>#Form.hidden2#</cfoutput> |
Advertisement
No User Comments.
No User Comments, be the first one to write your comments?


