View Single Post
  #2 (permalink)  
Old 07-10-09, 10:16 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Take a deeper look at your script's flow/logic, and think about what it does.

The email is only being validated if the "name" is empty. Meaning, if the user enters a name, the email won't be validated at all.

And on another note, there shouldn't be quotes around the $regex variable.
Reply With Quote