Just trying to go along with some tutorials! CAn’t figure out why I’m getting an error on the form action line
<?php
if (isset($_POST['Username'])&&isset($_POST['password'])) {
$username = $_POST['Username'];
$password = $_POST['password'];
if (!empty($Username)&&!empty($password)) {
echo 'OK';
} else {
echo 'You must supply an email and a password.';
}
?>
<form action="<?php echo $current_file; ?>" method="POST">
Email: <input type="text" name="username"> Password: <input type="password" name="password">
<input type ="submit" value = "Log In" />
</form>
you have 2 variables $username and $Username – should be the same?