Okay, I know how to do this is director lingo, fairly easy. I want to keep a
few variables global so I dont have to keep passing them through the link
structure.
Example:
I have a site that is either accessed through a banner ad, or a print ad. If
it is a banner ad the link will look like this
http://www.mylocation.com/index.cfm?banner=yes but, if it is a print ad the
person will only be typing in http://www.mylocation.com Now, I have a
session opened up with a cfapplication. But how do i set up global
variables? I want that banner variable to be global once a person accesses
the site right now i do this:
<cfif isdefined(banner)>
<cfset banner = yes>
<cfelse>
<cfset banner = no>
</cfif>
<cfif banner eq "yes">
<a href = "http://www.mylocaiton.com/index2.cfm?banner="yes">
<cfelse>
<a href = "http://www.mylocaiton.com/index2.cfm?banner="yes">
</cfif>
And I have to do this on each site. But not just with that, with like 5
other variables... its a big mess.
Any info on global variables? I'm using cf server 4.0
------------------------------------------------------------------------------
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.