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