I have an HTML form that posts to a separate PHP file. My problem is whenever I wrap the form tags around my text input and I reload the page, my username textbox has 'localhost' as its text and the password field has my database password as its text. I honestly do not know why this happens. This is my code for my login-ui.html file:
<form action="login.php" method="post" enctype="multipart/form-data">
<div class="login-field">
<input type="text" name="Username" id="txtUsername" placeholder="Username" />
<input type="password" name="Password" id="txtPassword" placeholder="Password" />
<br />
<a href="">
<img src="pics/gears-small-white.png" style="width: 10px; height: auto;" /> Login</a>
<a href="#">
<img src="pics/gears-small-white.png" style="width: 10px; height: auto;" /> Reset Password</a>
</div>
</form>
There is currently no code in the login.php file.