Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 3 Question 39 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 39
Topic #: 3
[All 200-710 Questions]

An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Elise
7 days ago
I'm pretty sure Option C is correct. Putting the buttons in separate forms with the same name should work, right? Gotta love those workarounds!
upvoted 0 times
...
Polly
8 days ago
Option D is the correct answer. Assigning unique names and values to the submit buttons allows you to easily identify which one was clicked using PHP's superglobal arrays.
upvoted 0 times
...
Veronika
10 days ago
I'm not sure, but I think C could also work. Putting the buttons in different forms with the same name.
upvoted 0 times
...
Nancey
13 days ago
I disagree, I believe the answer is B. You need to use JavaScript to add a value to the URL.
upvoted 0 times
...
Ettie
18 days ago
I think the answer is D. You can use $_GET or $_POST to determine which button was clicked.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77