Vote count:
0
I currently have a log in form, however, I can gain access with any username and password, how could I set a specific username and password to do this?.
CURRENT JAVASCRIPT
function validateForm(objForm) {
if (objForm.username.value.length == 0) {
alert("Please enter the user name");
objForm.username.focus();
return false;
}
if (objForm.password.value.length == 0) {
alert("Please enter the password");
objForm.password.focus();
return false;
}
$.mobile.changePage('#next'); //
return true;
}
HTML
<form name="loginform" action="#next" method="post" onsubmit="return validateForm(this)" data-ajax="false">
User Name:
<input type="text" name="username">
<br>Password:
<input type="password" name="password">
<br>
<input type="submit" value="Login" data-theme="b">
</form>
asked 36 secs ago
Aucun commentaire:
Enregistrer un commentaire