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
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."
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
3 matches
Mail list logo