Home  >  Article  >  Backend Development  >  PHP registration code

PHP registration code

巴扎黑
巴扎黑Original
2016-11-23 13:31:151007browse

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">



Statement:
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