PHP registration code

巴扎黑
Release: 2016-11-23 13:31:15
Original
1057 people have browsed it

PHP registration code

$Uname=$_POST["Uname"];

$Pwd=$_POST["Pwd"];

$register=$_POST["register"] ;

$link=mysql_connect("localhost","root","12345");

if($link)

{

                  $db_selected=Mysql_Query("use register", $link);

                 

                                                                                                                                ("insert into [user] (Uname , Pwd) values($Uname, $Pwd)" , $link);

                                                                                                                                                               { echo( "The username cannot be empty!");

}}} {echo ("Data source connection fails!");}

? & Gt;

& lt; form name = "form1" action ="" method="post">



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template