> Whoops! Careless of me. The line should read, and as I tested it, > > elseif (eregi("[a-zA-Z]",$num)) { } > > Do you see any problem with this? Yes, same thing it will accept other character like !*- etc... try if(!eregi("^[0-9]+[0-9]*$",$num) { //error } M@ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP-DB] Forms : Validating user input is integer Boclair
- Re: [PHP-DB] Forms : Validating user input is integer Ben Udall
- Re: [PHP-DB] Forms : Validating user input is integer Boclair
- Re: [PHP-DB] Forms : Validating user input is integer Manuel Lemos
- Re: [PHP-DB] Forms : Validating user input is integer boclair