Thanks mate, problem kinda fixed, looks like this now... <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <? $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; echo "<p>Order Processed at "; echo date("H:i, "); echo "on "; echo date ("jS F"); echo "<br>"; echo "<p>Your order is as follows:"; echo "<br>"; echo $tireqty." tires<br>"; echo $oilqty." bottles of oil<br>"; echo $sparkqty." spark plugs<br>"; ?> </body> </html>
Ryan "Jon Haworth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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