Question: how do i do this in javascript. it runs on php but i am not doing serverside stuff so i dont need php. main page
how do i do this in javascript. it runs on php but i am not doing serverside stuff so i dont need php.
KMOG UI LOG IN
if(isset($_POST['btnSubmit'])){
//taking username entered by user
$username=$_POST['username'];
//taking password entered by user
$password=$_POST['password'];
//checking username and password
if ($password=="IAMUSER") {
//when both username and password is same then
echo 'Welcome user!'; echo "ENTER";
}
else if ($password=="IAMDRIVER"){
//when both username and password is same then
echo 'Welcome Driver!'; echo "ENTER";
}
else {
echo 'Invalid password.';
}
}
?>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
