How to know what submit button the user clicked?
The submit_button() function is a wrapper for get_submit_button(). Now that function has multiple arguments, but the most interesting for your actual problem is the 3rd argument name. It sets the HTML name attribute. <form action=””> <input … etc. <button type=”submit” name=”choice-a”> </form> Now everytime you process your form with an empty action attribute, you will … Read more