<?php
	$username = $_POST['userName'];
	if (empty($_POST['userName']) == true) {
		$username = "<b>PLEASE LOGIN</b>";
		header("Location: not-eligible.html");
		echo "redirected!";
	}
?>

<!DOCTYPE HTML>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Change Password</title>
	</head>
	<body>
		<p><b>Mau Ganti Password?</b></p>
			<form method="POST" action="changePW-pro.php">
				<!-- <label for="username">Nama: </label> -->
				<input type="hidden" name="username" id="username" readonly value="<?php echo $username; ?>">
				
				<label for="oldPW">Old Password: </label>
				<input type="password" name="oldPW" id="oldPW"><br>
					
				<label for="newPW">New Password: </label>
				<input type="password" name="newPW" id="newPW"><br>
					
				<label for="newPWC">Confirm New Password: </label>
				<input type="password" name="newPWC" id="newPWC"><br>
					
				<input type="submit" value="Change password">
			</form>
	</body>
</html>