I had created a login form that IF you enter the wrong username or password the value you entered in the username will be echoed back to the login form.
But now I want to add the value=”LOGIN” to the form, when you haven’t tried to login and if you enter the wrong user/pass it will change to the echoed value.
Hope you understand what i mean 🙂
This is my input code
<input type="text" name="username" id="username" value="<?php if (isset($_POST['username'])) echo htmlentities($_POST['username']); ?>" />
1 Answer