Trying to make a simple login page, here's the form:
<form action="admin/login" method="post" enctype="multipart/form-data">
<div class="input-container">
<span class="label">Username:</span>
<input class="login-input" type="text" name="user" required>
<span class="label">Password:</span>
<input class="login-input" type="password" name="pass" required>
</div>
<input id="login-button" type="submit" value="Log In">
</form>
Here's the login page:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
echo $_POST['user'];
?>
I just get this printed out:
Notice: Undefined index: user in /var/www/html/admin/login.php on line 6
I have no idea what is going on and i've tried everything.