PrepAway - Latest Free Exam Questions & Answers

what is the value of $_POST[‘list’]?

The following form is loaded in a recent browser and submitted, with the second list element selected:
<code>
<form method=”post”>
<select name=”list”>
<option>one</option>
<option>two</option>
<option>three</option>
</select>
</form>
</code>
In the server-side PHP code to deal with the form data, what is the value of $_POST[‘list’]?

PrepAway - Latest Free Exam Questions & Answers

A.
1

B.
2

C.
two

D.
null (since the <code> value attribute of the list has not been set)


Leave a Reply

Your email address will not be published. Required fields are marked *