RE: [PHP] computing 2 value and adding it..
| From: | Ralph Guzman | Date: | Mon, 21 Jul 2003 03:06:47 +0000 |
| Subject: | RE: [PHP] computing 2 value and adding it.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156011@lists.php.net to get a copy of this message | ||
if($pcs_1000){
$total = $amount * 2;
}
-----Original Message-----
From: Louie Miranda [mailto:louie@axishift.ath.cx]
Sent: Sunday, July 20, 2003 7:53 PM
To: php-general@lists.php.net
Subject: [PHP] computing 2 value and adding it..
Importance: High
I have a 2 form value on 500/pcs and 1000/pcs
And i was hoping how will i compute this when i comes to this code..
--- start --------------------
$final_price_usmail = ( $bcard_price + $usmail_price );
$final_price_courier = ( $bcard_price + $courier_price );
if ($v_sendvia === 'USMail') {
echo '$' . $bcard_price . ' (Business Card) + ' . $usmail_price . '
(U.S.
Mail) = $' . $final_price_usmail . '.00';
} elseif ($v_sendvia === 'Courier') {
echo '$' . $bcard_price . ' (Business Card) + ' . $courier_price . '
(Courier) = $' . $final_price_courier . '.00';
}
--- end --------------------
Im looking for a way that when the user click on the 1000/pcs it will
compute * 2.
But i couldt figure this out..
--
Thank you,
Louie Miranda (louie@axishift.ath.cx)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php