CIST2351-PHP Programming I - Ch 07
Which character is used to separate the original URL from the parameters that are appended to it?
?
Which method of the form appends values to the URL to pass data?
GET
Assume that the statements that follow get the data from a text area named comments. After these statements are executed, how will the $comments_esc variable be displayed by an echo statement? $comments = filter_input(INPUT_POST, 'comments'); $comments_esc = htmlspecialchars($comments);
With character entities for special characters
A hidden field:
doesn't appear on the form but its data is sent to the server
Which PHP function convert some special characters into character entities?
htmlspecialchars
Which attribute of a form element determines how the data is passed to a file?
method
Which optional attribute of a select element allows the user to select more than one option in a list box?
multiple
Which type of input element should be used on a form when the user can select only one of the options?
radio
Which HTML element is used to create a drop-down list?
select
Assume that the POST method is used. Which of the following statmenbts gets the value of the radio button that's on in the delivery group and stores it in a variable named $card_type? USPS >Federal Express >UPS
$card_type = filter_input(INPUT_POST, 'delivery');
