t: Thursday, July 19, 2001 11:14 AM
Subject: Re: [PHP] Re: Simple validation problem
> I wonder how that can be enough, if you consider the following form,
> you can enter "45-98" and it will print ok !!
>
> Since all http is coming as a string, I beleive the only way is to test
print "ok";
}else print "not a float: error";
?>
- Original Message -
From: CC Zona <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:15 PM
Subject: [PHP] Re: Simple validation problem
> In article <00ef01c10fa5$fd20f2e0$e064fea
In article <00ef01c10fa5$fd20f2e0$e064fea9@py>, [EMAIL PROTECTED] (Py)
wrote:
> I am trying to make shure the amount is positive
if($amount >0)
{...}
> and is a float
if(is_float($amount))
{...}
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
3 matches
Mail list logo