nerdexam
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)
  • A
    4% (2)
  • B
    9% (4)
  • C
    85% (39)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice