if(!$email_p)
{
$forgot_error .= "Error - Enter your email address";
}
else if(preg_match( "/[a-zA-Z0-9-.+]+@[a-zA-Z0-9]+.[a-zA-Z]+/", $email_p) < 0)
{
$forgot_error .= "Invalid e-mail address";
}
i want to make sure email that user enter is right format. but for some reason it never goes in else if statment. can some one check if this is right?
preg_match( "/[a-zA-Z0-9-.+]+@[a-zA-Z0-9]+.[a-zA-Z]+/", $email_p < 0
also what stuff is good idea to put after "A-Z and before @" ex: #$%^&*(}{"><?)_+= stuff like this
hwoarang69 11 Newbie Poster
LastMitch
PrimePackster commented: To Rectify what some retard did to LastMitch +0
diafol
hwoarang69 11 Newbie Poster
diafol
Bob Hensley 20 Bob's Back!
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.