|
| |
|
|
kitty6
Posts: 112 Joined: 10/15/2005 Status: offline
|
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
Posts: 9137 From: Biddeford, ME USA Status: offline
|
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?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
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
|
|
|