Multiple Submit button
I just wrote an engine and got stuck as the url on which the engine post the data have multiple submit button inside a single form.
How exactly can we point out the exact submit button say publish which we wish to click?
All 3 buttons are <input type="submit" kind of button.
Please help
How exactly can we point out the exact submit button say publish which we wish to click?
All 3 buttons are <input type="submit" kind of button.
Please help
Comments
form name=*Publish*
<input type="submit" name="save" id="save" value="Enregistrer" />
<input type="submit" name="save" id="save-post" value="Enregistrer brouillon" />
AND
<input type="submit" name="publish" id="publish" value="Publier" />
Using the above syntax form name=*Publish* , the Engine clicks on the first button ie Enregistrer, whereas in actuality i want to click on the button Publier
of course you need to use ...
form name=*Publier*
always use the caption/value of the button you want to press.