Cyber Monday 2024! 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 62 Discussion

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

The following form is loaded in a recent browser and submitted, with the second select option selected:

In the server-side PHP code to deal with the form data, what is the value of $_POST['list'] ?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Lilli
6 months ago
I'm with Bob on this one, the value of $_POST['list'] should be 2 because that's the actual value of the selected option.
upvoted 0 times
...
Veda
7 months ago
But wouldn't it be the index of the selected option, which is 2?
upvoted 0 times
...
Rory
7 months ago
I disagree, I think it would be 'two' as that is the option selected.
upvoted 0 times
...
Bette
7 months ago
I believe the value would be 2 because 'two' is just the text value displayed on the webpage.
upvoted 0 times
...
Veda
7 months ago
I think the value of $_POST['list'] would be 'two'.
upvoted 0 times
Scarlet
7 months ago
User 2
upvoted 0 times
...
Michell
7 months ago
User 1
upvoted 0 times
...
...
Mozell
8 months ago
I think the value should be 'null' if the form is submitted without any options selected. But since the question specifies the second option is selected, I'm going with option C.
upvoted 0 times
...
Viva
8 months ago
Haha, this question is a real brain-teaser. I'm gonna go with option C and hope for the best. Anyone want to make a friendly wager on the outcome?
upvoted 0 times
...
Chanel
8 months ago
Well, if the second option is selected, it should be the string 'two', not the number 2. I'm going with option C.
upvoted 0 times
...
Golda
8 months ago
Ah, this is a tricky one. I'm leaning towards option C, 'two', but I could be wrong. Anyone else have any thoughts?
upvoted 0 times
...
Martina
8 months ago
Hmm, I'm not sure about this one. I think the value might be the index of the selected option, which would be 2. But I'm not 100% sure.
upvoted 0 times
...
Justine
8 months ago
I'm pretty confident about this question. The second option in the select list is 'two', so the value of $_POST['list'] should be 'two'.
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