Menu

confirming a "confirm email" field

Help
W4Designs
2008-08-24
2013-06-03
  • W4Designs

    W4Designs - 2008-08-24

    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

     
    • TNTEverett

      TNTEverett - 2008-08-24

      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;
      }

       
    • W4Designs

      W4Designs - 2008-08-24

      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

       
      • TNTEverett

        TNTEverett - 2008-08-25

        This is done with JavaScript in the form.html file.  It is not much more complicated but it is a different programming language. 

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.