CIST2351-PHP Programming I - Ch 07

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Assume that the POST method is used. Which of the following statements gets the value of the radio button that's on in the delivery group and stores it in a variable named $card_type? <input type="radio" name="delivery" value="USPS">USPS <input type="radio" name="delivery" value="FedEx">Federal Express <input type="radio" name="delivery" value="UPS">UPS > $card_type = isset($_POST['delivery'];) > $card_type = isset($_POST['card_type']; > $card_type = filter_input(INPUT_POST, 'delivery'); > $card_type = filter_input(INPUT_POST, 'card_type');

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

Which character is used to separate the original URL from the parameters that are appended to it? > ? > & > $ > =

?

A hidden field: A. appears on the form but its data is hidden B. has data that is obscured by bullets or asterisks C. doesn't appear on the form but its data is sent to the server D. appears on the form with its data grayed out

C. doesn't appear on the form but its data is sent to the server

Which method of the form appends values to the URL to pass data? > GET > POST > ACTION > APPEND

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 both special characters and new line characters > With <br> tags for new line characters > With character entities for special characters > With both character entities and <br> tags

With character entities for special characters

Which PHP function convert some special characters into character entities? > htmlspecialchars() > convertchars() > substr() > double_encode()

htmlspecialchars()

Which attribute of a form element determines how the data is passed to a file? > action > method > submit > default

method

Which optional attribute of a select element allows the user to select more than one option in a list box? > size > multiple > morethanone > plural

multiple

Which type of input element should be used on a form when the user can select only one of the options? > checkbox > radio > text > submit

radio

Which HTML element is used to create a drop-down list? > select > list > drop-down > input

select


संबंधित स्टडी सेट्स

Module 4: Functions and Moments of a Random Variable & Intro to Regressions

View Set

social media marketing cert test

View Set

NU472 HESI Obstetrics/Maternity Practice Exam - 103 Questions

View Set

Chapter 2 Ethics, Fair Housing, Trust Funds, and Other Legal Issues

View Set

Georgia Real Estate Exam Review Part A

View Set

7.16.F - Test: Europe, Russia & Central Asia

View Set