I’m trying to build a simple login page for a web app that i am designing, i have written my HTML including my form and i have defined its method as ‘post’
but for some reason when i use the dev tools in my browser it says its using a GET request method.
I have confirmed my connection to my database but can’t check the entered password against the saved passwords on the database because the request method will not change to post, I am using WAMP with Apache and mysql, i have checked that mod_rewrite is enabled.
This is my code:
<body>
<div>
<h1>Welcome to Infrasafe</h1>
<form id="loginForm" action="loginPage.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<button type="submit">Login</button>
</form>
</div>
<?php include 'loginPage.php';?>
</body>
dev tools network page
Jamie Harris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.