The book was written before the PHP group had decided to change the default value of error_reporting in php.ini. The best way to adapt your code is the write this equivelent: (You should also be using the $_GET[""] super global array)
<?php
if (isset($_GET["aaa"])) {echo $_GET["aaa"];}
if (isset($_GET["choice1"])) {echo $_GET["choice1"];}
if (isset($_GET["choice2"])) {echo $_GET["choice2"];}
if (isset($_GET["choice3"])) {echo $_GET["choice3"];}
?>
This code works with both of the new defaults set in php.ini, error reporting E_ALL and register_globals = off.
There are a multitude of reasons for adapting your code to work with these new standards!
See Nik's register globals FAQ:
http://p2p.wrox.com/archive/beginnin...2002-11/17.asp
And see this topic on error reporting:
http://p2p.wrox.com/topic.asp?TOPIC_ID=1709
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::