[thelist] JS: test which submit button was clicked.
Tom Dell'Aringa
pixelmech at yahoo.com
Fri Jun 4 11:10:37 CDT 2004
--- Tab Alleman <Tab.Alleman at MetroGuide.com> wrote:
> <form name="FormName" onSubmit="TestRejection('FormName');"
> action="SomeScript.asp" method="post">
> <input type="submit" name="WhatToDo" value="Approve">
> <input type="submit" name="WhatToDo" value="Reject">
> </form>
The problem is you can't have two submit buttons with the same name.
In any event, you are going about it the wrong way - two submit
buttons in not the way to go.
Have a radio button set that has your "approve / reject" choice. Test
the radio group instead.
HTH
Tom
=====
http://www.Pixelmech.com/ - read my latest blog posting!
http://www.crossandthrone.com/ - Eternal Life
John 3:16
More information about the thelist
mailing list