This practice quiz is posted to help you prepare for the
final exam. The questions here are similar to those that will
be on the exam. (Some of them may actually be on the exam.) Mark
your selections using the radio buttons.
Answers are shown by clicking the button at the bottom of the page.
Which of the following is not the name of an array used to hold data from a form submission to a PHP processor?
To protect a PHP script against an HTML injection attack
one should avoid using the GET method.
it must validate or sanitize data received from a form submission before using it in response content.
the script needs to verify that form submission is coming from a trusted IP address.
If a checkbox in a form is not checked, then when the form is submitted, in the form data received by the form processor, the checkbox form field
is present, but its value is unset
is not present
is present, and its value is FALSE
is present, and its value is "unchecked"
If an HTML form contains a field that allows multiple values, such as a select with the multiple attribute,
using a PHP form processor, there is no way to access values other than the first one.
the field name must end with  so it becomes an array.
the field name will be repeated in the form data received, occurring one time for each distinct value.
the field data will not be sent when the form is submitted.