:confused:I am new here.How else should I answer questions?
Leon Munir
Posts
-
help me please -
help me pleaseThis is a community forum and I am here help and answer questions. :| Please refrain from posting such comments.:mad:
-
help me pleaseHere is the complete code without ajax functionality. You didn't mention in the question if you wanted to display result without loading the php page.The login.html could looks like this:
</pre>
<pre lang="Javascript">function validate(){
if((f1.login.value == "") || (f1.password.value == ""))
{
alert("you must enter your name and password");
return false;
}
else
{
return true;
}
}</pre>
<pre lang="HTML">User Name
PasswordThe validate.php could look like this:
Add a new student
Remove a student";
}
else
{
// GO BACK link
echo "GO BACK";
// javascript displays message
echo "alert(\"wrongpassword and/or login please try again\");";
}
}
}
?>Hope it answers your question :)
follow me on twitter @leon_developer