Bill,
Here are two suggestions. I know CF variables are typeless butit might help.
Try putting quotes around each case. Eg. CASE "1":... CASE "2":.. and so on.
Also you might want to place each case within {}s. Eg. CASE
1":{ COPY_BLOCK...; ...TITLE="whatever"; }
Hope this helps.
Leong
PS: I've just noticed... Logical error. You've just assigned the variable,
page, with the literal VALUE of URL.PAGE. As a result no matter what value
you assign URL.PAGE, the variable PAGE will always be the same. You should
use this:
PAGE = "#URL.PAGE#" or PAGE = URL.PAGE
-----Original Message-----
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 10, 2000 8:50 AM
To: Cf-Talk
Subject: CFSCRIPT Question??
When I pass this page the URL variable of 1 through what ever or nothing
they all return the default value. Why is that? There is nothing to this
page, but for some reason every time it will either give me the default case
value, or if I take the default out it gives me number 8. Every time!
<CFSCRIPT>
PAGE = "URL.PAGE";
SWITCH (PAGE){
/* Home page for resilient */
CASE 1 :
COPY_BLOCK = 'resilient_home.cfm';
FOOTER = 'resilient_footer.cfm';
BACKGROUND = 'background_resilient_home.gif';
TITLE = 'Resilient Home';
// Resilient search page
CASE 2 :
COPY_BLOCK = 'resilient_search.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background.gif';
TITLE = 'Resilient Product Search';
// Pages 3 through 6 are Resilient Technical pages
CASE 3 :
COPY_BLOCK = 'resilient_technical.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background_resilient_technical.gif';
TITLE = 'Resilient - Technical';
CASE 4 :
COPY_BLOCK =
'resilient_professional_installation_guide.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background.gif';
TITLE = 'Resilient - Professional Installation Guide';
CASE 5 :
COPY_BLOCK = 'resilient_installations.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background.gif';
TITLE = 'Resilient - Installation';
CASE 6 :
COPY_BLOCK = 'resilient_matting_systems.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background.gif';
TITLE = 'Resilient - Matting Systems';
// Pages 7 through 8 is Resilient Installation Profiles
CASE 7 :
COPY_BLOCK = 'resilient_installation_profiles.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background_resilient_home.gif';
TITLE = 'Resilient - Installation Profiles';
CASE 8 :
COPY_BLOCK =
'resilient_installation_profiles_drill_down.cfm';
FOOTER = 'main_footer.cfm';
BACKGROUND = 'background.gif';
TITLE = 'Resilient - Installation Profiles';
DEFAULT :
TITLE = '';
}
</CFSCRIPT>
<html>
<head>
<title><CFOUTPUT>#TITLE#</CFOUTPUT></title>
</head>
<body>
<CFOUTPUT>#TITLE#</CFOUTPUT>
</body>
</html>
Bill Killillay
ICQ @ 8425781
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
"An investment in Knowledge always pays the best interest."
-Benjamin Franklin-
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
Get Paid to Surf the Web. It's free, easy and fun.
Sign up for AllAdvantage.com at
http://alladvantage.com/go.asp?refid=FIB-034
Most of us are on it every day all day anyway, why not give
yourself a pay raise for 25 hours a month.
----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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.