What does the HTML of the field look like in an example where the "hidden" field is visible? (View source)
----- Original Message ----- From: "Mark Leder" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 7:42 AM Subject: Dynamic Variable in a Hidden Form Field > I want to pass an encrypted dynamic variable in a hidden form field to a > second page. > > Problem is with the hidden form field, if I don't wrap the form field with > <cfoutput></cfoutput> all that's passed is the literal string > #VARIABLES.somVars#. If I do wrap it with <cfoutput>, the value of > VARIABLES.someVar is passed correctly. However, the <cfoutput> causes the > hidden field to be displayed in the client browser (so it doesn't act as a > hidden var). This seems to me to be really odd behavior. > > What am I doing wrong? > > =================================== > <cfset VARIABLES.fooVar = "1234"> > > <cfset VARIABLES.someVar = #Encrypt(VARIABLES.fooVar, key)#> > > <form action="secondpage.com" method="post"> > <input type="hidden" name="abc" value="#VARIABLES.someVar#" /> > <input name="Submit" type="submit" value="Submit" /> > </form> > ==================================== > > Thanks, Mark > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

