
January 15th, 2005, 09:07 PM
|
|
|
|
Join Date: Apr 2007
Location: Israel
Posts: 23
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
How to distinguish between multiple submit buttons ?
I have a form:
<FORM METHOD="POST" name="form1" action="<?=$_SERVER[PHP_SELF]?>" onsubmit=return(CheckForm()) >
and 2 sumit buttons:
<input type="submit" name="send" id="send" value="send">
<input type="submit" name="reset" id="reset value="reset">
How do I distinguish in the javascript function CheckForm() which
submit button was clicked ?
Thanks
|