navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Variables

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Variables
Page: [1]
 
Matth

 

Posts: 36
From: Zurich, Switzerland
Status: offline

 
Variables - 4/11/2001 20:46:00   
Hi

I'm trying to let the user choose his own background color. I've placed a little .gif with hotspots on one page. From there I link to a 'mood.asp' page, where I'd like to pass on different variables. So, for color 1, I'd use the link: mood.asp?mood=1

In the mood.asp I've got the following code, but for some reason this just does not work.

<% dim vbgcolor
Select case ::mood::
case 1
vbgcolor = "#F4D9FF"
case 2
vbgcolor = "#F2F9FF"
End Select

response.Cookies("mood")("bgcolor") = vbgcolor
response.Cookies("mood").Expires = DateAdd("m",1,Date)
%>

First I tried the same thing without the case, and it worked using the cookie. But there must be something wrong with the case statement...

Any help highly appreciated!

Matthias

Matth

 

Posts: 36
From: Zurich, Switzerland
Status: offline

 
RE: Variables - 4/11/2001 20:05:00   
Found it myself

That's what is needed:
<body bgcolor=<%=request.Cookies("mood")("bgcolor")%>>

<%
Select case request("mood")
case "blue"
vbgcolor = "#F4F9FF"
case "purple"
vbgcolor = "#F2A9FF"
case "beige"
vbgcolor = "#F2G9FF"
case else
vbgcolor = "#F2C9FF"
End Select

response.Cookies("mood")("bgcolor") = vbgcolor
response.Cookies("mood").Expires = DateAdd("m",1,Date)
%>



(in reply to Matth)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Variables
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts