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 6 Question 85 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 85
Topic #: 6
[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:

Nobuko
28 days ago
I bet the person who came up with option D is the same one who thought the answer to 'What is the capital of England?' is 'yes'.
upvoted 0 times
Dominga
6 days ago
A) 1
upvoted 0 times
...
...
Teddy
1 months ago
If you select the second option in the dropdown, the value should be the string 'two', not a number. C is the answer, no doubt about it.
upvoted 0 times
Valentin
21 days ago
Yes, you're right. It should be the string 'two'.
upvoted 0 times
...
Tien
22 days ago
I think the answer is C) two.
upvoted 0 times
...
...
Stefania
2 months ago
But isn't the value stored in $_POST as the option's value, which is 2 in this case?
upvoted 0 times
...
Richelle
2 months ago
Hmm, I'm not sure why anyone would think the value is null. That doesn't make sense at all. C is clearly the correct answer.
upvoted 0 times
Shad
10 days ago
User 4: I'm not sure, but I think it might be 1.
upvoted 0 times
...
Roy
14 days ago
User 3: I agree with Roy, 'two' is the correct value.
upvoted 0 times
...
Izetta
26 days ago
User 2: No, I believe it is 'two'.
upvoted 0 times
...
Venita
1 months ago
User 1: I think the value of $_POST['list'] is 2.
upvoted 0 times
...
...
Clemencia
2 months ago
I disagree, I believe the answer is C) two because the value selected in the form is 'two'.
upvoted 0 times
...
Macy
2 months ago
I agree, C is definitely the right choice here. The second option in the select element is 'two', so that's what should be stored in the $_POST['list'] variable.
upvoted 0 times
...
Stefania
2 months ago
I think the answer is B) 2 because 'two' is the value selected in the form.
upvoted 0 times
...
Fletcher
2 months ago
Well, since the second option is selected, the value of $_POST['list'] should be 'two', which is the correct answer. C is the way to go.
upvoted 0 times
Allene
1 months ago
Yes, you're right. It should be 'two'.
upvoted 0 times
...
Tamesha
1 months ago
I think the value of $_POST['list'] would be 'two'.
upvoted 0 times
...
...

Save Cancel