Hi fellow geeks I need some help in creating my first website.
I am stuck with email validation, I have checked plenty of links from google but I am just not able to get through with email validation.
I would be greatful if you can help me with it.
This is the code where I am facing issues..
if(preg_match('/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/',$eml))
{
die("invalid email address");
$flag=false;
}
now whenever I try inserting a valid email address, it pops up an error as:
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\xampp\htdocs\cms_xhtml\customerinsert.php on line 159
please give me a solution to this issue or give me some other email validation code which can replace the above mentioned code.
Thank you again, gracias