Question: I have this code and am trying to do an action if the passwords match. If they match then display the message on the same

I have this code and am trying to do an action if the passwords match. If they match then display the message on the same page. my code keeps crashing need help

html code

KMOG UI LOG IN

php code

if (password_verify('IAMUSER', $username)) { echo 'Welcome user!'; } else if (password_verify('IAMDRIVER', $password)){ echo 'Welcome Driver!'; } 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!