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.

main page

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!