Hi,
Im doing some php and mysql and am having abit of trouble, I got a script from the internet and this bit validates it:
// Check for a email.
if (eregi ("^[[:alnum:]_]{0,25}$", stripslashes(trim($_POST['email'])))) {
$em = escape_data($_POST['email']);
} else {
$em = FALSE;
echo '
Please enter valid email!
';
}
Just wondering what each bit meant so I could decifer it and make it work.
Cheers
2007-03-16
11:06:22
·
3 answers
·
asked by
jeff lemon
1
in
Computers & Internet
➔ Programming & Design