Hi there,
I'm using this code for e-mail checking:
[PHP]
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email)) {
echo "<span style=\"color: red; font-weight: bold; \">Registrat ion errors have occured:</span><br />You entered an invalid email address.<p>Plea se go <a href=\"javascri pt:history.go(-1)\">previous page</a> and try again.</p>";
} else {
// registration codes
}
[/PHP]
But, example, if my email address is hello.there@add ress.net registration have error. Why?
Thanks
I'm using this code for e-mail checking:
[PHP]
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email)) {
echo "<span style=\"color: red; font-weight: bold; \">Registrat ion errors have occured:</span><br />You entered an invalid email address.<p>Plea se go <a href=\"javascri pt:history.go(-1)\">previous page</a> and try again.</p>";
} else {
// registration codes
}
[/PHP]
But, example, if my email address is hello.there@add ress.net registration have error. Why?
Thanks
Comment