Phpmysql user registration and login code. Phpmysql user registration and login code is a user registration and login code implemented using php and mysql databases. the function is also a simple and practical user registration program. In addition, php mysql User registration and login code is also added. this is a user registration and login code implemented using php and mysql databases. the function is also a simple and practical user registration program. At the same time, the verification code program is added during user login, which is much safer.
Php Tutorial mysql tutorial User registration login code
This is a user registration and login code using php and mysql database tutorials. the function is also a simple and practical user registration program. At the same time, the verification code program is added during user login, which is much safer.
*/
?>
Add users in the background
Require_once ("config. php ");
If (isset ($ _ post ["submit2"]) {
Mysql_select_db ('a0807000225 '); // This is a database table.
$ Author = $ _ session ["user_name"];
Define (all_ps tutorial, "jinquan ");
Echo $ username = $ _ post ["username"];
Echo $ password = md5 ($ password = $ _ post ["password"]. all_ps );
Echo"
";
If ($ username ){
If ($ password ){
$ Str = "insert into 'dx _ user_list '('uid', 'M _ id', 'username', 'password') values (ascii (null ), '1', '$ username',' $ password ');";
$ Rs = mysql_query ($ str, $ conn );
Mysql_close ($ conn );
}
If ($ rs ){
Echo "script" alert ('added successfully '); location. href = 'yonghuzc. php' script ";
} Else {
Echo "script" alert ('add failed'); location. href = ''yonghuzc. php' script ";
}
}
}
?>
Http://www.bkjia.com/PHPjc/444870.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444870.htmlTechArticlephp mysql User registration login code this is a use of php and mysql database to achieve user registration and login code Oh, the function is also relatively simple and practical user registration program Oh. Also add...