Phpmysql user registration login code _ PHP Tutorial

Source: Internet
Author: User
Tags php mysql
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.