Inersha
08-07-2008, 11:39 PM
I have a form and script that works with numbers that are entered, but it doesn't seem to be able to work with decimal numbers.
Im thinking it could be due to this...
$string = preg_replace("/[^0-9]",'', $stringa);
If this is the problem, how can I make it so that the form can work with decimals and not turn each number entered into an integer?
Thanks in advance.
Im thinking it could be due to this...
$string = preg_replace("/[^0-9]",'', $stringa);
If this is the problem, how can I make it so that the form can work with decimals and not turn each number entered into an integer?
Thanks in advance.