Announcement

Collapse
No announcement yet.

Dual validating password fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dual validating password fields

    Can anyone tell me how to have 2 password fields so that the 2nd field validates that the password entered in the 1st field is correct and returns an error message and resets both fields if the passwords don't match.

    Apologies if this is on a forum list somewhere, but I haven't been able to find it.

    Thanks.

  • #2
    Re: Dual validating password fields

    There are several posts on this
    http://www.vodahost.com/vodatalk/gen...ight=passwords

    http://www.vodahost.com/vodatalk/blu...ight=passwords

    Do a search above for more.
    Hope this helps.
    Bill
    www.blueearthtea.com
    www.ftaaconsulting.com
    www.iaval.com
    www.theemeraldbay.com

    Comment


    • #3
      Re: Dual validating password fields

      You need to have two password fileds in your form. Call the first one "password" and the seconf one "password1".

      Now in your php processing script, you need to implement these lines of code:

      @$password = addslashes($_POST['password']);
      @$password1 = addslashes($_POST['password1']);

      if( $password != $password1 )
      {
      header("Location: error_page.html");
      exit;
      }

      Put these lines in your script, before the mail sending part.
      Create and publish an "error_page" in BV with a Back button in it and the appropriate message. Have a look at How to upload a file using a form
      to see how to create this error page and how to put a "Back to the form" button.
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment


      • #4
        Re: Dual validating password fields

        Thanks for these responses. Much appreciated.

        Martin

        Comment

        Working...
        X