On 7/12/00, Chris Farrugia penned:
>I have an application.cfm and a form on a page. Now, if they fill in the
>form, they then have a CustomerID variable defined... in my application.cfm
>I have the following line:
>
><CFSET APPLICATION.ADDTOKEN = "cfid=#client.cfid#&cftoken=#client.cftoken#">
>
>Now, how could I put the customerID to the end of the addtoken if and only
>if it exists? So it isn't there until they fill out the form... then on
>every page it is there...? How would I do this?
If you are passing the cfid and cftoken as a query string, which it
appears you are looking at the syntax, just wrap the cfset tag in a
<cfif not isdefined('url.cfid')> tag. Or,you could put an action
field in the form. <input type=hidden name=action value=writetoken>
Then wrap it in a <cfif action is "writetoken"> tag.
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.