I try to verify if the email address as something@something.domain
for now i tryed this:
if (!eregi('^[[:alpha:]]+$', $email)){
echo "mail valid <br />";
}
else{
header ("Location: logare.php");
echo "mail invalid <br />";
exit;
}
but is not enough, becouse it doesn't check the strings after @, and i didn't figure it out how to do it.
*echo "mail invalid is not displayed - don't know why, and if i switch them (first echo, then header...), it returns an error.
for now i tryed this:
if (!eregi('^[[:alpha:]]+$', $email)){
echo "mail valid <br />";
}
else{
header ("Location: logare.php");
echo "mail invalid <br />";
exit;
}
but is not enough, becouse it doesn't check the strings after @, and i didn't figure it out how to do it.
*echo "mail invalid is not displayed - don't know why, and if i switch them (first echo, then header...), it returns an error.
