Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form with two buttons. Change the action?

Status
Not open for further replies.

sgueper

Programmer
May 2, 2002
18
ES

Another question is:

How can I have two buttons in a form and change the page to redirect clicking on them.
One is to modify "modify.asp" and the other is to delete "delete.asp".

Thanks,
Silvia
 
you need to use javascript like this:

Code:
<input type="button" value="Delete" onClick="document.forms['formName'].action='delete.asp'">

<input type="button" value="Modify" onClick="document.forms['formName'].action='modify.asp'">

hope this helps

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top