digital_plunder;10989397 wrote:Then what should be the exact code for login page?
Whatever you want it to be (it's not my login page, after all).
However, I would guess that the HTML for displaying the form should go in an 'else' branch that matches up with the first if() statement:
if (isset($_POST["submit"]))
(in other words, if the POST variable is set, do the processing; if it isn't set, display the form).