CIST2351-PHP Programming I - Ch 06

Ace your homework & exams now with Quizwiz!

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 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

Which optional attribute of a select element allows the user to select more than one option in a list box?

multiple

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?

$card_type = filter_input(INPUT_POST, 'delivery');


Related study sets

Identify rational and irrational numbers

View Set

Chapter 5 T/F Review - Computer Programming

View Set

Series 66: Uniform Securities Act (Securities Registration)

View Set

Intensive vs Extensive Properties

View Set

D Day and the Liberation of Europe

View Set