MMDT1146 PHP Programming
Week 8
Week 8 Notes:
|
Lab 8 This lab is to test your knowledge of being able to create a login page that users must go to before being able to go to your other pages that contain customer database operations. Also this assignment will verify your ability to use cookies and session variables. The lab must contain several items. Your resulting output should like similar to this. lab8a variation. Create a table named "loginaccess" on the server. Create these fields: Create at least 4 records. Populate all the fields. One record must have a username of "test" with a password of "abc123" and an email address of orders(at)ridgewater.net. Another record must have your Ridgewater email ID with a password that is your student ID (with preceding zeros) and your ridgewater email address. The two remaining username/password/email records are of your choosing. I am requiring the test/abc123/orders(at)ridgewater.net record so I can test your finished lab. Create a subfolder on your web server named "mmdt1146lab8". (This may already be done for you from doing the in class exercises.) Copy your working lab7 files into the lab8 subfolder. Verify that your lab8 works before continuing further. Under the lab8 subfolder you will need to create a few new files. The names are of your choosing. In my example, I called mine "login.php", "forgotpassword.php" and "lookupemail.php". Title your pages. Create the page login.php :
Modify the page form.php :
Modify the page add.php :
Modify the page delete.php :
Modify the page edit.php :
Create the page forgotpassword.php :
Create the page lookupemail.php :
Assignment is due 1 week from when it was assigned. 50% penalty if late.
|