Re: [PHP] Training Help

2003-09-12 Thread Jon Haworth
Hi Ryan, > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; That'll certainly fix the problem, but it kind of defeats the point of using $_POST :-) Ideally you'd clean the data at this point to make sure no-one's trying to submit anything nasty (Googl

Re: [PHP] Training Help

2003-09-12 Thread Ryan Stagg
Thanks mate, problem kinda fixed, looks like this now... Bob's Auto Parts - Order Results Bob's Auto Parts Order Results Order Processed at "; echo date("H:i, "); echo "on "; echo date ("jS F"); echo ""; echo "Your order is as follows:"; echo ""; echo $tireqty." tires"; echo $oilqty."

Re: [PHP] Training Help

2003-09-12 Thread Jon Haworth
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 changi

[PHP] Training Help

2003-09-12 Thread Ryan Stagg
I recently aquired a copy of the book PHP and Mysql web development by SAMS. I have begun reading through it and it seems to be a very usefull book however I started doing the first exersise which is a simple HTML Processor, the HTML page is as follows: Bob's Auto Parts - Order Results Bob's