Hello everyone!
Suppose I have the following HTML form:
<form>
...
<input type="submit" name="queue" value="Queue item">
<input type="submit" name="submit" value="Submit item">
</form>
How do I know which button the user clicked (without using javascript)?
I looked at submitted data and it seems that when "Queue Item"
is clicked then "queue" = "Queue Item"
gets sent to the server. And when "Submit item"
is clicked then "submit" = "Submit item"
sets sent.
Can I rely on this behavior? Is it documented somewhere in the standard on HTML forms? How do you guys do it?
Please share your experience!
Thanks, Boda Cydo.