If I ask a submitter to provide their email address (optionally), and have another text box just after the first one and ask them to re-enter their email address, how could I force the form upon being submitted, to check one email entry against the other to actually verify they're the same?
Thanks!
Buster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anything is possible.
In the processor.php you need a test for the two variables.
if($variable1 != $variable2) {
echo "Error email entries do not match";
exit;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, that works but it just takes them to a white screen with the error. How would you make it select the field in question and color it as pink link it does when you don't complete a required field?
Thanks!
Buster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I ask a submitter to provide their email address (optionally), and have another text box just after the first one and ask them to re-enter their email address, how could I force the form upon being submitted, to check one email entry against the other to actually verify they're the same?
Thanks!
Buster
Anything is possible.
In the processor.php you need a test for the two variables.
if($variable1 != $variable2) {
echo "Error email entries do not match";
exit;
}
OK, that works but it just takes them to a white screen with the error. How would you make it select the field in question and color it as pink link it does when you don't complete a required field?
Thanks!
Buster
This is done with JavaScript in the form.html file. It is not much more complicated but it is a different programming language.