This question, probably has been asked a thousand times, but upon searching i found one function to check e-mail form and so-far this is what i got. if(isset($_POST['mail'])){@$mail = $_POST['mail']; if(empty($mail)) {echo 'Please Post your mail ID';}else { if (!preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)*.([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/" , $mail)) { echo 'false'; }else{ $record = 'MX'; list($user,$domain) = split('@',$mail); if(!checkdnsrr($domain,$record)){ echo 'false'; }else{ echo 'true'; } } }} PHP: The problem with the code above is, that: When you try, to submit the form without writing an email, it says " Please Post your mail ID " As, it should but when you post an email Ex: then it says Deprecated: Function split() is deprecated in C:\xampp\htdocs\DIRECTORY\Library\test\register.php on line 53 --I guess what i am looking for, is the un-deprecated form of the split function and probably adjust and check out the function it if has no flaws. Thanks.
Well, great but not really. Because, i just did that, and i got. [B]Warning: preg_split() [[URL="http://localhost/directory/Library/test/function.preg-split"][COLOR=#0000ff]function.preg-split[/COLOR][/URL]]: No ending delimiter '@' found in [B]C:\xampp\htdocs\DIRECTORY\Library\test\register.php on line [B]53[/B][/B][/B] Code (markup):
Kisses and Hugs. Thanks Dino. It gave me, a 'true' response i will try to finish the user registration form now.