National_Instruments
200-500 · Question #102
The following form is loaded in a recent browser and submitted, with the second list element selected: <form method="post"> <select name="list"> <option>one</option> <option>two</option>…
The correct answer is C. two. See the full explanation below for the reasoning.
Question
The following form is loaded in a recent browser and submitted, with the second list element selected:
<form method="post"> <select name="list"> <option>one</option> <option>two</option> <option>three</option> </select> </form> In the server-side PHP code to deal with the form data, what is the value of $_POST['list']?Options
- A1
- B2
- Ctwo
- Dnull (since the <code> value attribute of the list has not been set)
How the community answered
(46 responses)- A4% (2)
- B9% (4)
- C85% (39)
- D2% (1)
Community Discussion
No community discussion yet for this question.