index.php:
Код: Выделить всё
function valid()
{
var obj = document.frmlogin;
if(obj.txtname.value == "")
{
alert("Please Enter Username");
obj.txtname.focus();
return false;
}
if(obj.pwd.value == "")
{
alert("Please Enter Password");
obj.pwd.focus();
return false;
}
else
{
return true;
}
}
Username
Password
Keep me signed in
LOGIN
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/369 ... -and-mysql