Exam 4: Handling User Input

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The best way to ensure valid form data is to build the Web form with controls that only allow the user to enter acceptable responses

(True/False)
4.7/5
(42)

The mail() function returns a value of TRUE if the message was sent successfully and FALSE if it was not.

(True/False)
4.9/5
(31)

The alternate method to escape strings is the stripslashes() function.

(True/False)
4.9/5
(39)

____________________ or superglobals are predefined global arrays that contain client, server, and environment information that you can use in your scripts.

(Short Answer)
4.9/5
(40)

The ____ function can be used to ensure that a number has the appropriate number of decimal places.

(Multiple Choice)
4.8/5
(40)

You must use the global keyword to reference a global variable within the scope of a function.

(True/False)
4.8/5
(32)

The $_REQUEST autoglobal is not secure because it also includes the contents of the ____________________ autoglobal.

(Short Answer)
4.8/5
(40)

Which of the following is NOT a required argument of the mail() function?

(Multiple Choice)
4.8/5
(35)

The get method restricts the number of characters that can be appended to a URL to 255.

(True/False)
4.8/5
(33)

When the post method is used to submit a form, the name portion of the name/value pair becomes the value assigned to the array element.

(True/False)
4.9/5
(42)

The ____________________ family of functions can be used to ensure that the user enters numeric values where necessary.

(Short Answer)
4.9/5
(35)

In PHP, a(n) e-mail message is sent using the ____ function.

(Multiple Choice)
4.9/5
(39)

From, Cc, Bcc and Date headers are examples of additional headers.

(True/False)
4.8/5
(31)

In PHP, an e-mail message is sent using the email() function.

(True/False)
4.7/5
(38)

The get method is useful as a ____________________ technique because it allows you to see the names and values that are being sent to the Web server.

(Short Answer)
4.8/5
(39)

The $_ENV autoglobal contains ____ variables that programs use to interact with the system.

(Multiple Choice)
4.9/5
(38)

When you click a form's submit button, each field on the form is sent to the Web server as a ____________________ pair.

(Short Answer)
4.7/5
(38)

There are security risks using the $_REQUEST autoglobal because it includes the contents of the ____ autoglobal as well as the $_GET and $_POST autoglobals.

(Multiple Choice)
4.8/5
(34)

When you use the ____ method to submit form data to the processing script, the form data is appended to the URL specified by the action attribute.

(Multiple Choice)
4.8/5
(42)

A good programming practice is to stop processing a form when an error is found and display the error to the user.

(True/False)
4.9/5
(41)
Showing 61 - 80 of 83
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)