if($pcs_1000){
  $total = $amount * 2;
}

-----Original Message-----
From: Louie Miranda [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 20, 2003 7:53 PM
To: [EMAIL PROTECTED]
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 ([EMAIL PROTECTED])



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




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

Reply via email to