PHP 註冊代碼
$Uname=$_POST["Uname"];
$Pwd=$_POST["Pwd"];Mregister
$link=mysql_connect("localhost","root","12345");if($link){ if ( $register="register") { $result=mysql_query("insert into [user] (Uname , Pwd) values($Uname, $ Pwd)" , $link); echo ("<script>alert('登錄成功 !');history.back;</script> else { echo("使用者名不能為空!"); }}else{ echo("資料來源連線失敗? "post">