Yes, register globals are now on. Though it doesn't apparently matter. Stuart
toby z <[EMAIL PROTECTED]> wrote: register globals on or off ????? --- Stuart Felenstein wrote: > I can't believe Chapter 1 , section 1 and I'm off to a bad start > already. > Using this form and script, I keep getting "undefined index" for > the variables I declare in the script. Running PHP 4.3.2 on XP > Pro. Thanks. > Stuart > > Form: > > > > > Item > Quantity > > > Tires > [input] > maxlength="3"> > > > Oil > [input] > maxlength="3"> > > > Spark Plugs > [input] > maxlength="3"> > > > [input] > Order"> > > > > > Script: > > > > > > > Bob's Auto Parts > Order Results > > //create short variable names > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; > ?> > > echo ' Your order is as follows: '; > echo $tireqty.' tires '; > echo $oilqty.' bottles of oil '; > echo $sparkqty.' spark plugs '; > ?> > > > ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/