close
<body>
<form method="POST" action="php_form1.php">
帳號:<input type="text" name="username" /><br />
密碼:<input type="password" name="passwd" />
<input type="submit" value="登入" />
</form>
</body>
<body>
<?php
if($_POST["username"]=="abc" && $_POST["passwd"]=="123"){
$login = "yes";
}else{
$login = "no";
}
if($login == "yes") {
echo "登入成功!";
}else{
echo "登入失敗!";
}
?>
</body>
文章標籤
全站熱搜
留言列表