Next Oct 6 Previous
Blank checks
Take this elementary HTML form:
<form method="POST"> <input type="checkbox" name="coffee"> <button type="submit">Save</button> </form>
What will be the value of $_POST["coffee"]
when the form is submitted and the check box is not set.
A: false
B:
C: the entry "coffee" will not be set in the $_POST
array
D: the form is not submitted because no action is given.