Re: Administrator page and password problem

From: Date: Wed, 07 Apr 2004 21:45:47 +0000
Subject: Re: Administrator page and password problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182722@lists.php.net to get a copy of this message
You mixed up here a little :-) [...]
if (strlen($_POST['password1']) > 0) {
        if ($_POST['password1'] ==
       ($_POST['password2'] {
1.....         $password = TRUE;
     } else {
        $password = FALSE;
        echo '<p<Your password did not match the confirmed password!</p>'
        }
} else { $password = FALSE; echo '<p>You forgot to enter your password!</p>'; } [...]
try : if ( strlen ( $_POST['password1'] ) > 0 ) {
    if ( $_POST['password1'] == $_POST['password2'] ) {
       $password = TRUE ;
    } else {
       $password = FALSE;
       echo '<p<Your password did not match the confirmed password!</p>'
    }
} else {
    $password = FALSE;
    echo '<p>You forgot to enter your password!</p>';
}

« previous php.general (#182722) next »