In PHP program, I have JS function which validates submit <form ...onsubmit='return isOK();'>
. It works OK. The problem is I want it to work only for particular submits, not for all. Is there any way inside the JS function to find out which submit was pressed, or some PHP trick
instead of onsubmit u can use onClick.
<input type="submit" onclick="return pressSubmit1()" value="submit1" />
<input type="submit" onclick="return pressSubmit2()" value="submit2" />
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments