<form> Login : <input type=textbox name=login><br> Password : <input type=password name=pass><br> <input type=button value="OK" onCLick="if (login.value=='admin'&&pass.value=='123456') window.location.replace('admin.php'); "> </form>