It seems you have register globals set to off, thus when you have variables
$price and $qty they are just fresh variables, you might try
$HTTP_POST_VARS['price'] and $HTTP_POST_VARS['qty'] (don't forget the single
quote).


"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