Re: beginner question to variables

From: Date: Tue, 11 Jun 2002 04:35:55 +0000
Subject: Re: beginner question to variables
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14173@lists.php.net to get a copy of this message
"Si Ming" <php@4golf.org> wrote in message news:20020606211743.17061.qmail@pb1.pair.com... > $totalqty = $tireqty + $oilqty + $sparkqty; > ---------- change it to ----------- > $totalqty = $HTTP_POST_VAR["tireqty"] + $HTTP_POST_VAR["oilqty"] + Some options: 1) extract($HTTP_POST_VARS); // note it's plural... 2) if you use these vars a lot: $tireqty = $HTTP_POST_VAR["tireqty"]; (...) $totalqty = $tireqty + ... > and what about the $totalqty variable that has just been created? How do I > refer to it? As $totalqty since you created it. The arrays are only for post, get, environment, etc., variables that come from outside your script. - Steve Yates - A pessimist complains about the noise when opportunity knocks. / Taglines by Taglinator - www.srtware.com /

« previous php.windows (#14173) next »