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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to