thank you for your response but I need to know how I can use this TRUE or FALSE to raise an error signal to the user by using, for instance, Javascript etc. I know that it is not recommended to use the Javascript, but I want to inform the user before the page is redirected. A small pop-up would help me.
thank you again.
function email_check ($intext) {
$email= ereg("[@ ]+@[@ ]+.[@ . +$",$intext);
if ($email) {
return TRUE;
} else {
return FALSE;
}
}