The encrypted string probably contains an angle braket, which would cause the tag to not render properly. Try wrapping it with htmlEditFormat().
HTH, barneyb > -----Original Message----- > From: Mark Leder [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 10:43 AM > To: CF-Talk > 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

