Exercises
-
What is the reason that register_globals is disabled by default in PHP?
-
Which of the following superglobals are not contained inside of $_REQUEST:
-
a) $_GET
-
b) $_COOKIES
-
c) $_FILES
-
d) $_POST
-
-
Give one advantage of using POST to send form data, and one advantage of using GET.
-
Why is the is_numeric() function a better choice for form validation than the is_int() function?
-
Which PHP function will automatically strip any HTML tags out of a variable?
-
Why might the CTYPE functions be the preferred method for data validation?
-
Client-side validation should be avoided at all times: true or false?



Copyright 2012 Future Publishing Limited (company
registered number 2008885), a company registered
in England and Wales whose registered office is at
Beauford Court, 30 Monmouth Street, Bath, BA1 2BW, UK