ColdFusion Tutorial

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>

ColdFusion Tutorial test

Submitting hidden form field.

No test is available or implemented for this ColdFusion Tutorial.

No User Comments.

No User Comments, be the first one to write your comments?

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
5Dq
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday