Jump to content

[SOLVED] Password match?


onthespot

Recommended Posts

/* Password error checking */

      $field = "pass";  //Use field name for password

  $field2 = "pass2"; // Second field for password

      if(!$subpass2){

        $form->setError($field2, "* Password not entered");

      }

      else{

 

    //Check passwords match

$subpass = stripslashes($subpass);

      $subpass2 = stripslashes($subpass2);

        if($subpass$subpass2){

            $form->setError($field, "* Passwords does not match");

        }

 

This is the code for matching passwords on registration. The line    if($subpass$subpass2){    seems to be creating a parse error.

Any help here would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/164764-solved-password-match/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.