|
| |
|
|
chadb
Posts: 487 From: Kansas Status: offline
|
2 form push buttons - 7/12/2006 13:17:18
Is it possible to post to 2 differnet ASP pages depending on which form push button os selected, and if so how? Thanks Chad
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: 2 form push buttons - 7/12/2006 13:57:40
Sure can. One method I use is to change the actual form "action" tag using a JavaScript. Give me a few and I'll find the example I use. EDIT: Can't find it right at the moment, but it basically boils down to JavaScript that will look something like: ... document.myFormName.action.value="http://www.mydomain.com/myPage.asp"; document.myFormName.submit(); ... That help any?
< Message edited by rdouglass -- 7/12/2006 14:09:25 >
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
chadb
Posts: 487 From: Kansas Status: offline
|
RE: 2 form push buttons - 7/12/2006 17:28:24
I am not to familar with Java, but I will mess around with it. Thanks Chad
|
|
|
|
BeTheBall
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: 2 form push buttons - 7/12/2006 18:22:39
An example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="" method="get" name="form1">
<input type="submit" name="b1" value="Submit-1" onclick="document.form1.action='http://www.msn.com'">
<input type="submit" name="b2" value="Submit-2" onclick="document.form1.action='http://espn.go.com'">
</form>
</body>
</html>
However, keep in mind if a user has javascript disabled, the form will go nowhere.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
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
|
|
|