Hi Ryan,

Sounds like register_globals is turned off on your server (this is generally
a Good Thing). Rather than having all your form fields converted directly
into variables - which your book is assuming, as it's how PHP used to do
it - you'll need to access them via the $_POST array.

Try changing this line:

>  echo $tireqty." tires<br>";

To this:

echo $_POST["tireqty"]. " tires<br>";

Search the manual or the list archives for "register_globals" and you'll get
loads of info about this.

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to