have you try echo $price and $qty separately to check if they are correct?

If they are correct, can you post you code? so we can take a look.


Foong



Cesar Aracena <[EMAIL PROTECTED]> wrote in message
000001c2bfeb$cecbd5c0$7a00a8c0@NOTEBOOK">news:000001c2bfeb$cecbd5c0$7a00a8c0@NOTEBOOK...
Hi all,

I guess this problem might sound childish for most of you, but I'm
having it right now. I get two numbers from a FORM, one price and one
quantity and I need to make a multiplication with them in order to store
the total amount also as a double expression... I'm trying with:

$totalprice = $price * $qty;

but when I echo the, it gives me just plain old 0 (zero). Any
suggestions?

Thanks in advance,

Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina






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

Reply via email to