RE: [PHP-WIN] code change in new version?
| From: | Jill dot Ramonsky at Aculab dot com | Date: | Wed, 05 Feb 2003 12:20:30 +0000 |
| Subject: | RE: [PHP-WIN] code change in new version? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18365@lists.php.net to get a copy of this message | ||
Typos aside, that should have read:
actually it's just
$_POST["tireqty"] + $_POST["oilqty"] + $_POST["sparkqty"]; (new way)
Of course, you can improve readability by doing
$tireqty = $_POST["tireqty"];
$oilqty = $_POST["oilqty"];
$sparkqty = $_POST["sparkqty"];
and then you can subsequently use the expression...
$tireqty + $oilqty + $sparkqty
Jill
-----Original Message-----
From: Jill.Ramonsky@Aculab.com [mailto:Jill.Ramonsky@Aculab.com]
Sent: Wednesday, February 05, 2003 12:17 PM
To: php-windows@lists.php.net
Subject: RE: [PHP-WIN] code change in new version?
actually it's just
$POST["tireqty"] + $_POST["oilqty"] + POST["sparkqty"]; (new way)
Of course, you can improve readability by doing
$tireqty = $POST["tireqty"];
$oilqty = $_POST["oilqty"];
$sparkqty = POST["sparkqty"];
and then you can subsequently use the expression...
$tireqty + $oilqty + $sparkqty
Jill
-----Original Message-----
From: paradiddles [mailto:fojomo@yahoo.com]
Sent: Tuesday, February 04, 2003 7:18 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] code change in new version?
$HTTP_POST_VARS["tireqty"] + $HTTP_POST_VAR["oilqty"] +
HTTP_POST_VARS["sparkqty"]; (new way)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php