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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When submitting form data, many "valid" email addresses are rejected as invalid (this is a required field). Is there any fix for this?
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!
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!
yep. remember the program can never be wrong, it only does what its told to. therefore wrong input will result in wrong output.
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