亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

PHP ?? ??? ???? ?? ??

?? ??? ???

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>注冊(cè)</title>
    <style type="text/css">
        *{margin: 0px;padding: 0px;}
        body{
            background:#eee;}
        #div{width:300px;height:400px;
            background:#B1FEF9;margin:0 auto;margin-top:150px;
            border-radius:20px;}
        h3{margin-left:48px;padding-top:60px;}
        h4{margin-left:120px;padding-top:60px;font-size: 18px;}
        #cnt{width:280px;height:370px;margin-left:33px;padding-top:60px;}
        .sub1{
            width:70px;height:30px;border:1px solid #fff;
            background:#eee;margin-left:150px;margin-top:20px;}
    </style>
</head>
<body>
    <div id="div">
        <h4>會(huì)員注冊(cè)</h4>
        <div id="cnt">
            <form method="post" action="regin.php">
                用戶名:<input type="text" placeholder="請(qǐng)輸入用戶名" name="username">
                <br><br>
                密&nbsp;碼:<input type="password" placeholder="請(qǐng)輸入密碼" name="password">
                <br><br>
                <input type="submit" value="注冊(cè)" class="sub1">
            </form>
        </div>
    </div>
</body>
</html>

?? ???? regin.php? ???? ????. ??? ?????

?? ??????? conn.php ??? ?????

require_once('conn.php');//?? ?????? ??? ?????.

??? ??? ? ??? ?? ??? ??? ?? ??????? ?? ?? ??? ????? ? ???. ?? ?? ??????? ?? "Zhang San" ???? ?? ?? "Zhang"? ?????. San" ?? ?. ?? ????? ???? ?? ???? ??? ??? ?? ?? ??????? ???? ?? ??? ????? ???? ???. ??? ??? ????.

$name = $_POST[' username'];
$pwd = md5($_POST ['password']);
$sql = "username='$name'? ????? * ??";
$info = mysql_query($sql);
$res = mysql_num_rows($info);

?? ?? $res ??? ????. ??? ????? ?? ??? ??????? ???? ???? ?????? ???? ?????. ??? ??, ?? ??? ??????? ???? ??? ? ????. ??? ??? ????:

($ res) {

echo "& lt; script & gt; ?? ('?? ???? ??????. ?????'; ?? .href ='reg.php';</script>";

}else{
? ? ? ? $sql1 = "`user`(??? ??, ????) ?('$name','$pwd')? ??";
$result = mysql_query ($ SQL1);
IF ($ Result) {
echo "& lt; ???? & gt; ?? ('?? ??'); local ; " E} else { & Echo "& lt; ???? & gt; ??('?? ??');

???? ??
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>注冊(cè)</title> <style type="text/css"> *{margin: 0px;padding: 0px;} body{ background:#eee;} #div{width:300px;height:400px; background:#B1FEF9;margin:0 auto;margin-top:150px; border-radius:20px;} h3{margin-left:48px;padding-top:60px;} h4{margin-left:120px;padding-top:60px;font-size: 18px;} #cnt{width:280px;height:370px;margin-left:33px;padding-top:60px;} .sub1{ width:70px;height:30px;border:1px solid #fff; background:#eee;margin-left:150px;margin-top:20px;} </style> </head> <body> <div id="div"> <h4>會(huì)員注冊(cè)</h4> <div id="cnt"> <form method="post" action="regin.php"> 用戶名:<input type="text" placeholder="請(qǐng)輸入用戶名" name="username"> <br><br> 密 碼:<input type="password" placeholder="請(qǐng)輸入密碼" name="password"> <br><br> <input type="submit" value="注冊(cè)" class="sub1"> </form> </div> </div> </body> </html>