nothing is wrong.  
<input type="hidden" name="abc" value="#VARIABLES.someVar#" />
is designed and understood to hide the form object, not the values.
Try using session vars to store your value in a different hidden context, your servers 
memory, cookies, etc...

Doug

>-----Original Message-----
>From: Mark Leder [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 19, 2003 1:43 PM
>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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to