Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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:

Maybelle
29 days ago
I heard the exam committee was trying to stump the candidates with a 'trick question', but they ended up tripping over their own feet. Guess they need to work on their HTML-PHP integration skills.
upvoted 0 times
Marguerita
14 days ago
I think the answer is D) Assign name and value attributes to each button and use $_GET or $_POST to find out which button has been clicked.
upvoted 0 times
...
...
Pedro
1 months ago
Option A? Really? Who writes these questions, my grandma? Everyone knows an HTML form can have multiple submit buttons!
upvoted 0 times
Jesusita
7 days ago
Yeah, option A doesn't make sense at all.
upvoted 0 times
...
Marsha
8 days ago
I agree, using $_GET or $_POST is the way to go.
upvoted 0 times
...
Tien
13 days ago
I think option D is the correct answer.
upvoted 0 times
...
...
Blondell
1 months ago
Option B seems logical, but why would we want to use JavaScript when we can do it all with PHP? That's like using a sledgehammer to crack a nut.
upvoted 0 times
Yan
17 days ago
It's always good to know the different options available, but PHP can definitely handle this task efficiently.
upvoted 0 times
...
Carisa
23 days ago
Using JavaScript might be unnecessary in this case. PHP can handle it just fine.
upvoted 0 times
...
Rusty
24 days ago
Option D is the correct answer. You can use $_POST to determine which button was clicked.
upvoted 0 times
...
...
Elise
2 months 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
Kris
1 days ago
No problem! Glad I could help. Option D is definitely the way to go in this case.
upvoted 0 times
...
Annmarie
2 days ago
Oh, I see. Thanks for clarifying that! Option D it is then.
upvoted 0 times
...
Santos
4 days ago
Actually, Option D is the way to go. You can use $_GET or $_POST to find out which button was clicked.
upvoted 0 times
...
Kenneth
12 days ago
I think Option D is the correct way to determine which button was clicked.
upvoted 0 times
...
...
Polly
2 months 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
Jillian
2 months ago
Actually, you can have multiple submit buttons and use unique names and values to determine which one was clicked with PHP.
upvoted 0 times
...
Stephaine
2 months ago
I always thought you could only have one submit button on a form.
upvoted 0 times
...
...
Veronika
2 months 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
2 months 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
2 months 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