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: 7,536
Thanks: 5
Thanked 20 Times in 18 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