"Si Ming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $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 /





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to