Re: Multiplication of double

From: Date: Mon, 20 Jan 2003 05:34:04 +0000
Subject: Re: Multiplication of double
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132212@lists.php.net to get a copy of this message
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" <icaam@icaam.com.ar> wrote in message 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 icaam@icaam.com.ar caracena@infovia.com.ar (0299) 156-356688 Neuquén (8300) Capital Argentina

« previous php.general (#132212) next »