Simple validation problem

From: Date: Wed, 18 Jul 2001 16:23:32 +0000
Subject: Simple validation problem
Groups: php.general 
Request: Send a blank email to php-general+get-58467@lists.php.net to get a copy of this message
Hello, I am trying to make shure the amount is positive and is a float. (format: $$$.$$) if( $amount == "" && !is_float( $amount ) && !eregi( "^[_a-z]", $amount ) ){ print "Error"; } this code does not work when I the input is -25.00 What could be wrong? py p.s. I read what I could on regular expression, but obviously still learning...

« previous php.general (#58467) next »