Adjusting redirect method
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
if (isset($_POST['Submit'])){
|
if (isset($_POST['Submit'])){
|
||||||
$_SESSION['loginData'] = $_POST;
|
$_SESSION['loginData'] = $_POST;
|
||||||
|
header("Location: /loginCheck.php");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<div class="message"><?php if($_SESSION["loginError"]!="") { echo $_SESSION["loginError"]; } ?></div>
|
<div class="message"><?php if($_SESSION["loginError"]!="") { echo $_SESSION["loginError"]; } ?></div>
|
||||||
<h2><font color="white">Please Login</h2>
|
<h2><font color="white">Please Login</h2>
|
||||||
<form action="loginCheck.php" method="post">
|
<form action="" method="post">
|
||||||
User:
|
User:
|
||||||
<input type="text" name="username" placeholder="Username"><br>
|
<input type="text" name="username" placeholder="Username"><br>
|
||||||
Password:
|
Password:
|
||||||
|
|||||||
Reference in New Issue
Block a user