Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help with php code. Comments are things to be done on the code. The code is two different files but for the picture I just
Help with php code. Comments are things to be done on the code. The code is two different files but for the picture I just put all code into one notepad.
Code below:
adminmenu.php files are separate just wanted to fit both in picture
html
head
Administrator Menu
authenticate.php second file
show page below
else
compare $pwd to the password from the users table
if $pwd is good:
put the username into the session with a the key: 'user"
redirect browser to adminmenu.php
else show page below dont give Mallory any clues
WARNING!
Don't confuse the username root and password empty string for
the MySQL database with the usernamepassword from the form!!
body
Invalid username andor password.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started