Integer check...

From: Date: Wed, 17 Oct 2001 11:30:53 +0000
Subject: Integer check...
Groups: php.general 
Request: Send a blank email to php-general+get-71323@lists.php.net to get a copy of this message
Hello, I got a little problem... At a script I'm writing, I ask the visitors to enter a number... now, they started entering numbers like: 100E+6 While I have said that the number can't be higher than 95,000,000 ... how can I check if this number really is in the format 100000000 instead of 100E+6? It seems weird, because PHP sees this number as 100000000, but when I update a MySQL integer field it is read as 100... Please help! Thanks in advance, Leon Mergen

« previous php.general (#71323) next »