Thanks~! For some reason, the cfif statement doesn't work on my end without the catch try in there... But everything is perfect now
-----Original Message----- From: Dylan Bromby [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 10:40 AM To: CF-Server Subject: RE: Cferror help? There are a number of ways to do what you want. Maybe this will lend some ideas. The method you're describing below would be something like: <CFIF CGI.HTTP_REFERER IS NOT "http://(URL)/(PATH)/payment.cfm"> <CFLOCATION URL="index.cfm" ADDTOKEN="No"> </CFIF> To put this into practice and handle errors arising from people going directly to the page they're not supposed to, try something like the code below. Again, there are numerous ways to accomplish what you're trying to do. <CFTRY> (The block of code you have now) <CFCATCH TYPE="Any"> (The code I included above) </CFCATCH> </CFTRY> -----Original Message----- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 7:29 AM To: CF-Server Subject: Cferror help? Im having some trouble with cferror. Well not trouble but im unsure if it can do what I need. Right now I have a main processing page for my shopping cart. And after reviewing my error messages, I think either people have bookmarked or indexed the procesing page or someon is referrencing directly. Either way I don't want this to happen. Sooo what I want to do is have myerror page say that if #Error.HTTPReferer# is not defined or better yet if the referring page is not payment.cfm then go to index.cfm Anyone out there done this or can help me do this? Keep in mind I still want to keep my generic catch all error page in place. Thanks ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com ------------------------------------------------------------------------------ To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
