R
Rich
Hi,
I was experimenting with some basic sample asp code but can't get it to work
correctly:
this is bgselector.asp which works OK - you add the name of a basic color
like blue, green, yellow and call another asp called backcolor.asp where I
have the problem:
bgselector.asp
---------------------------------
<html>
<head>
<title>Test page</title>
</head>
<body>
form>
Background Color selector
<form action ="backcolor.asp" method="post">
Please type in a valid color e.g blue , green , yellow
<input type="text" name ="backcolor"><p>
<input type="submit" value="submit"><p>
</form>
</body>
</html>
--------------------------------------------
in backcolor.asp the code that uses the color from bgselector.asp is
<%
Dim strBackColor
strBackColor = Request.Form("backcolor")
%>
How do I implement this? Here is what I tried that did not work to change
the backcolor of backcolor.asp
<html>
<head>
<title>backcolor</title>
<%
Dim strBackColor
strBackColor = Request.Form("backcolor")
%>
</head>
<body bgcolor=<%strBackcolor%>>
</body>
</html>
Any suggestions appreciated.
Thanks,
Rich
I was experimenting with some basic sample asp code but can't get it to work
correctly:
this is bgselector.asp which works OK - you add the name of a basic color
like blue, green, yellow and call another asp called backcolor.asp where I
have the problem:
bgselector.asp
---------------------------------
<html>
<head>
<title>Test page</title>
</head>
<body>
form>
Background Color selector
<form action ="backcolor.asp" method="post">
Please type in a valid color e.g blue , green , yellow
<input type="text" name ="backcolor"><p>
<input type="submit" value="submit"><p>
</form>
</body>
</html>
--------------------------------------------
in backcolor.asp the code that uses the color from bgselector.asp is
<%
Dim strBackColor
strBackColor = Request.Form("backcolor")
%>
How do I implement this? Here is what I tried that did not work to change
the backcolor of backcolor.asp
<html>
<head>
<title>backcolor</title>
<%
Dim strBackColor
strBackColor = Request.Form("backcolor")
%>
</head>
<body bgcolor=<%strBackcolor%>>
</body>
</html>
Any suggestions appreciated.
Thanks,
Rich