Problems in the practical tutorial of PHP user login system
杨某人
杨某人 2017-12-01 21:49:39
0
1
1012

Original webpage//m.sbmmt.com/code/3984.html

There is a problem with the registration processing page in the fourth step. On the registration page, click Register Now Then go to the registration processing page and report an error

1.PNG

Code:

session_start();
//Registration processing interface regcheck.php
if(isset($_POST["hidden"]) && $_POST["hidden"] == "hidden")
{
$psw = md5(trim() $_POST["userpwd"]));
$psw_confirm = md5(trim($_POST["confirm"])); user == "" || $ psw == "" || $ psw_confirm == "")
{
echo "& lt; script & gt; alert ('Please confirm the information integrity!'); history.go (-1); & lt;/Script & GT; "; ##}
## Else if ($ code! = $ _Session ['ver_code']) {

Echo" & lt; alert ('The verification code is incorrect, please re-enter!'); History.go (-1); & lt;/script & gt; = $psw_confirm)
 conn)){
echo mysqli_error($conn);exit;mysqli_select_db($conn,"userdb"); //Select database
'); //Set character set
$sql = "select username from user where username = '$user'"; //SQL statement
$result = mysqli_query($conn,$sql); result); //Statistics on the number of rows affected by the execution result exist '); history.go (-1);"; 2long($_SERVER[' remote createip`) values('" . $user . "','" . $psw ."','".$time."','".$ip."')";
{ .href='login.php'; ";
}
since

}
}
Else
{
echo "& lt; script & gt; alert ('' passwords are inconsistent! '); Hestory.go (-1);/script & gt;";
}
}
}
Else
{
Echo "& LT; Script & GT; Alert ('Submitted unsuccessful!'); & Lt;/script & gt;"
}
?>

杨某人
杨某人

reply all (1)
phper_江上雨

This variable is not registered? I don’t see it in the code

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!