How can I tell which button was clicked in a PHP form submit?
Posted
by Sonny Boy
on Stack Overflow
See other posts from Stack Overflow
or by Sonny Boy
Published on 2010-04-21T03:44:02Z
Indexed on
2010/04/21
3:53 UTC
Read the original article
Hit count: 298
Hey all,
I have several buttons on my page, but I'm not sure how to tell which one was clicked. Here's the markup for my two buttons:
<input type="submit" id="btnSubmit" value="Save Changes" />
<input type="submit" id="btnDelete" value="Delete" />
Thanks in advance, Sonny
© Stack Overflow or respective owner