Menu

Invalid email address

Help
N2C
2005-02-16
2013-06-03
  • N2C

    N2C - 2005-02-16

    When submitting form data, many "valid" email addresses are rejected as invalid (this is a required field). Is there any fix for this?

     
    • coriander-cat

      coriander-cat - 2005-02-17

      I have the same problem, also all other form fields give a message of error and I never get to a point that the message gets sent. Any ideas? Thanks!

       
    • N2C

      N2C - 2005-02-18

      I found the error. It was mine. I had an alternative email address in the form that was also marked as a required field, but it wasn't supposed to be. Derr!

       
    • Musawir Ali

      Musawir Ali - 2005-02-19

      yep. remember the program can never be wrong, it only does what its told to. therefore wrong input will result in wrong output.

       
    • Rand0

      Rand0 - 2005-04-13

      I am having the same problem.  I am a first time user.  I followed instructions, setup the page with a mySQL back-end which tested successfully yet, I cannot submit the form.  I get the following error:

      The following errors occured while processing your form input.

          * Invalid email address entered

      The relavant code from the process.php page is:
      if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email)){
      $error.="<li>Invalid email address entered";
      $errors=1;
      }
      if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$emaillists)){
      $error.="<li>Invalid email address entered";
      $errors=1;
      }

      Anyone please explain what is going on?

      Thanks,

      Rand0

       

Log in to post a comment.