Error on the first line Undefined index: $pwd Also undefined variable Under it. Please show new code Thanks! The ending of it spits out.
$pwd = $_POST['$pwd'];              //Error undefined index: $pwd
if( strlen($pwd) < 8 ) {
        $error .= "Password too short! 
";
}                                     //This line undefined variable
Getting error above here******error variable
if( strlen($pwd) > 20 ) {
        $error .= "Password too long! 
";
}
if( strlen($pwd) < 8 ) {
        $error .= "Password too short! 
";
}
if( !preg_match("#[0-9]+#", $pwd) ) {
        $error .= "Password must include at least one number! 
";
}
if( !preg_match("#[a-z]+#", $pwd) ) {
        $error .= "Password must include at least one letter! 
";
}
if( !preg_match("#[A-Z]+#", $pwd) ) {
        $error .= "Password must include at least one CAPS! 
";
}
if( !preg_match("#\W+#", $pwd) ) {
        $error .= "Password must include at least one symbol! 
";
}
if($error){
        echo "Password validation failure(your choice is weak): $error";
} else {
        echo "Your password is strong.";
}
Thanks again :D
 
     
     
    