I have several templates that require an ID variable to be passed to
them. When the templates load, they run a query "WHERE (COUNTY_NO =
'#ID#')" -- ID is a CGI variable.

I'm trying to account for users that will try to load these templates
without the ID, but I can't make either IsDefined or ParameterExists
work for me. If the user attempts to load without the proper ID, I'd
like to redirect them to another page where I let them select the county
and type of information they want. 

I've tried every permutation I can find, but I can't get it to work. I'd
simply like to:
1) Load the page and check for cgi variable
2) If variable exists, process the page
3) If not, redirect user to another page?

Any suggestions?

Also, I understand I'm not doing this very efficiently. Rather than
having different templates for particular types of information, I should
be using the same template and creating the HTML using some sort of
"method". However, I haven't yet come across an explanation of how to do
this (e.g., the way Allaire presents everything with an ID
&Method="..."). Could anyone direct me to a resource for a description?

TIA,
--John Allred
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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.

Reply via email to