PHP

PHP

HTML Forms has 10 Questions

Which two predefined variables are used to retrieve information from forms?

$GET & $POST
$_GET & $_POST
$__GET & $__POST
GET & POST
The attack which involves the insertion of malicious code into a page frequented by other users is known as..

basic sql injection
advanced sql injection
cross-site scripting
scripting
When you use the $_GET variable to collect data, the data is visible to..

none
only you
everyone
selected few
When you use the $_POST variable to collect data, the data is visible to..

none
only you
everyone
selected few
Which variable is used to collect form data sent with both the GET and POST methods?

BOTH
b)$_BOTH
c)$REQUEST
d)$_REQUEST
Which one of the following should not be used while sending passwords or other sensitive information?

GET
POST
REQUEST
NEXT
Which function is used to remove all HTML tags from a string passed to a form?

remove_tags()
strip_tags()
tags_strip()
tags_remove()
What will be the value of the variable $input in the following PHP code?
  1.     <?php
  2.     $input = "SwapnaLawrenceyou are reallypretty!";
  3.     $input = strip_tags($input,"");
  4.     ?>

Swapna Lawrence you are really pretty!
Swapna Lawrence you are reallypretty!
Swapna Lawrence you are really pretty!
Swapna Lawrence you are reallypretty!
To validate an e-mail address, which flag is to be passed to the function filter_var()?

FILTER_VALIDATE_EMAIL
FILTER_VALIDATE_MAIL
VALIDATE_EMAIL
VALIDATE_MAIL
How many validation filters like FILTER_VALIDATE_EMAIL are currently available?

5
6
7
8