Posted by:
c2dan
(---.15-1.cable.virginmedia.com)
That book you are reading is outdated and teaching you old insecure methods.
The because your code does not work no more is because a setting called register_globals is now disabled by default (since PHP4.2) and is soon to be removed completely.
You now need to use the new superglobal variables, the most common used are:
$_GET - used to grab variables from the url
$_POST - used to get the value of form fields (only if the form method is set to post)
$_COOKIE - used for cookies. See [
php.net]
$_SESSION - used for session variables
$_SERVER - used for server side variables