I have a form for logging users so that:
<div class="login-form">
<form action="./compruebaLogin.php" method="POST">
<div class="container">
<input type="text" placeholder="Enter Username" name="user" required>
<br>
<br>
<input type="password" placeholder="Enter Password" name="password" required>
<br>
<br>
<button type="submit">OK</button>
</div>
</form>
</div>
And I have a file called compruebaLogin.php
to which this form is redirected. However, the redirection works badly, since I skipped the error page that I have created by default if the redirection fails. The issue is that this file is in the same directory as the one in the PHP login, the route that I have set is relative, and the visual studio code gives me suggestions, which makes me think that the problem is not the route.
Does anyone know what happens?