I'm using this code to limit my field to take the exact number of character, but maxlength = "10" is taking less than 10 character as well. I need to have my input field to take exact 10 character and if I put less than 10 will send an error. how can I do that? here is my code :
<form action="login.php">
Username: <input type="text" name="usrname" maxlength="10"><br>
<input type="submit" value="Submit">
</form>