I need help with form validating for numbers
Posted: Thu Mar 01, 2007 3:58 pm
Hello I'm having real problems trying to validate numbers that have numbers like 122332 here's what i'm using now
Now how do I change the code to accept numbers that are more than 9 please?
Code: Select all
if (eregi ('^[0-9]$', stripslashes(trim($_POST['user_id'])))) {
$uid = escape_data($_POST['user_id']);
} else {
$uid = FALSE;
echo 'lol';
}