Question: Using PHP For this assignment you should make a login form containing a username field and a password field. The form should use the POST

Using PHP

For this assignment you should make a login form containing a username field and a password field. The form should use the POST method (rather than GET) to send theinformation to a PHP document that compares the username to the stored usernameand the password to the salted and hashed password. Include the following 3 lines as the first three lines of the php file:

DEFINE("USR" , "jack");

DEFINE("SALT", "4; lkasdf1");

DEFINE("PASSWD", sha1("54321").SALT); Use these lines to define the username, salt and password that you will compare with.Sample input and output:

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!