How can you determine with PHP which button was clicked?

An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?
A. An HTML form may only have one button.
B. You cannot determine this with PHP only. You must use JavaScript to add a value to the URL depending on which button has been clicked.
C. Put two buttons in different forms, but make sure they have the same name.
D. Assign name and value attributes to each button and use $_GET or $_POST to find out which button has been clicked.

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.