I have a login system built and it works fine. Then I copied the code to my main computer to use it on localhost. Apache server and MySQL server was done through XAMPP. The problem is that chrome shows HTTP 405 error: HTTP Method not allowed. When I click submit after entering the credentials.
HTML (only the form part with no CSS):
<body>
<div class="login">
<h1>Login</h1>
<form action="authenticate.php" method="post">
<label for="username">
<i class="fas fa-user"></i>
</label>
<input type="text" name="username" placeholder="Username" id="username" required>
<label for="password">
<i class="fas fa-lock"></i>
</label>
<input type="password" name="password" placeholder="Password" id="password" required>
<input type="submit" value="Login">
</form>
</div>
</body>
Can someone please help me with this?