I was having trouble with getting my login form to redirect to user home page since last night, after one successful attempt. After filling the form, I would press submit but I remained on the same page, except the form would be cleared. So i decided to echo my inputs using the $_POST method, and after resubmitting the form, I saw that the page displayed 1 for both the entries. What is wrong in my code?
<!DOCTYPE html>
<?php require_once("../Includes/Session.php"); ?>
<?php require_once("../Includes/DB_Connection.php"); ?>
<?php require_once("../Includes/Functions.php"); ?>
<?php require_once("../Includes/Validation_Functions.php"); ?>
<head>
<title> eTransport: Login</title>
<link rel="stylesheet" type="text/css" href="Login_Style.css">
</head>
<html>
<body>
<div class="div1">
<h1 class="title"> Online eTransport Service (Fiji) </h1>
<div>
<form action="Login.php" method="POST">
eTransport_ID: <input type="text" name="eTransport_ID"><br>
Password: <input type="password" name="Password"><br>
<input type="submit" name="Submit" value="submit"><br>
<?php echo isset($_POST['eTransport_ID']); ?><br>
<?php echo isset($_POST['Password']); ?>
</form>
</div>
</div>
</body>
</html>
<?php
$id = isset($_POST['eTransport_ID']);
$password = isset($_POST['Password']);
$checked_id= mysql_prep($id);
$query = "SELECT eTransport_ID ,Password FROM etrans_id_details";
$login_set = mysqli_query($conn, $query);
while ($row = mysqli_fetch_assoc($login_set)){
if ($checked_id == $row["eTransport_ID"] AND $password == $row["Password"]){
redirect_to("Home.php");
}
}
?>
The Output for my Code with $_POST:

issetin$idand$password-- not the actual ID and password