我看着通过stackoverflow,但我只能找到SQL的东西。如何设置通用密码和用户名持有者,以便在php中检查它,然后重定向到另一个页面?例如,如果帖子包含用户名部分的“用户名”和密码部分的“密码”,则当点击提交按钮时,它将重定向到标题中的页面。重定向与简单的PHP和后
<form action="" method="post">
Username:<input type="text" name="username" placeholder="Username" maxlength = "15"/>
Password: <input type="password" name="password" placeholder="Password" maxlength = "15"/>
<input type='image' alt='Submit' src='button.jpg' width='15%'/>
</form>`
if ($_POST["username"] == "Username" && $_POST['password']=="Password")
{
header("thesite");
}
...'header('Location:some/page.php')'? – Ryan 2013-04-30 23:50:50