Test Your Knowledge
Form data can be submitted using either the
POSTor theGETmethod. Which associative arrays are used to pass this data to PHP?What is
register_globalsand why is using it a bad idea?What is the difference between a text box and a text area?
If a form has to offer three choices to a user, each of which is mutually exclusive (so that only one of the three can be selected), which input type would you use for this, given a choice between checkboxes and radio buttons?
How can you submit a group of selections from a web form using a single field name?
How can you submit a form field without displaying it in the browser?
Which HTML tag is used to encapsulate a form element and supporting text or graphics, making the entire unit selectable with a mouse-click?
Which PHP function converts HTML into a format that can be displayed but will not be interpreted as HTML by a browser?
See Chapter 11 Answers in Appendix A for the answers to these questions.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access