Your <CFLOCATION> is correct. Within the first # you have a function call
to which you pass a string. TO include variables in that string, you must
use # again.
If you are seriously concerned, another format would be:
<cflocation url="#urlSessionFormat('membership_application.cfm?stepNum=' &
session.memberApp.stepNum)#" />
J
-----Original Message-----
From: Nate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 2:46 PM
To: CF-Talk
Subject: Pound signs in urlSessionFormat()
***********************
Your mail has been scanned, and no virus was found.
***********************
I am working on an application where I will need to use the
urlSessionFormat() function and have a question on using url variables
inside this function.
i.e. the follwing bit of code works but looks wrong to me:
<cflocation
url="#urlSessionFormat('membership_application.cfm?stepNum=#session.memberAp
p.stepNum#')#" />
I understand the general rules to follow is that pound signs can be used
inside quotes, but you don't nest them.
Is this bad coding practice, or am I worried about nothing?
Thanks,
Nate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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