if goto www (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


kitty6 -> if goto www (4/25/2008 10:53:25)

I have a form with a text box field. How can I make it after submit do this:

If that text box equals "apple" goto www.abc.com and if text box equals "tree" then goto www.123.com, etc...

Thanks.




rdouglass -> RE: if goto www (4/25/2008 11:31:48)

How about this:

<%SELECT CASE lcase(trim(request.form("myTextBox")&""))
CASE "apple"
Response.redirect("http://www.abc.com")
CASE "tree"
Response.redirect("http://www.123.com")
CASE ELSE
Response.redirect("http://www.mydefaultdomain.com")
END SELECT%>


Maybe?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875