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
Recommended Answers
Jump to Post@hwoarang69
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?
You just want to see the if statement? Then try this:
if(!$email_p) { …
Jump to Posthave a look at filter validations ffor pphp thhere's one for email
All 5 Replies
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.