hi all,
i have three asp pages
the first one is more html than asp. i need to send a variable from the first page two the second one. i am using the following code-
<form action=“page2.asp” method=post>
i need to send a variable from the first page two the second page… HOWEVER this has to be a selected by the user.i am using a checkbox from html, the user has 4 checkbox’s to chose from, but he should be able to select only one. when the user, hits the submit button, the Second page will render information as per the checkbox he clicked. now i was think of user the SELECT CASE statement. but i dont believe that would work well… ANY IDEA TO SOLVE THIS PROBLEM…?
also the third page will should be able to redirect the user to the a another site for eg- yahoo.com, google.com etc etc
ANY HAVE THE SYTAX FOR IT PLEASE?
To make it so the user can check only one of the four boxes make sure that all four check boxes have the same name, e.g. “chkbox1”.
To retrieve that value on page 2 use the following within your ASP code:
var1 = request.form(“chkbox1”), replace var1 with whatever variable you are using.
To redirect use the following ASP Code:
response.redirect “http://www.google.com” or
response.redirect var2
where var2 would be a string variable that contains the URL.