Jump to content
Larry Ullman's Book Forums

Tutt

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Tutt

  1. I would like to see an example of the filter_var() used to validate an email address in register.php from Chapter 8 Review and Pursue. I've tried a million things but it's not catching errors correctly so I think my IF conditional is off. // original code for email validation: if (empty($_POST['email']) || (substr_count($_POST['email'], '@') != 1) ) { $problem = TRUE; print '<p class="error">Please enter your email address!</p>'; } Thank you! Jill
×
×
  • Create New...