Need to lock the text boxes in the login page?

1.2k Views Asked by At

need a help..I have created a login page with html and php.By entering email as the username and entering a password the user can login.But if the user click the login button without filling a text box an error message saying "missing" will display infront of that text box.(username text box,password text box and login button are in the same line)

problem is when that message displays infront of the one textbox the other will move away.it will appear after the word "missing".login button will also move..how can I lock these elements.pleas help.. :(

1

There are 1 best solutions below

2
user3684526 On BEST ANSWER

add the param in your input line. Example shown to you below, Just add readonly="true"

<input type="text" name"mypostvariable" readonly="true">