Login2. Login
F F
F F3 F
login-student.php F F F
F F
loginfailed.php F F F
logout.php F $_SESSION
Mr.Warawut Khangkhan Chapter 17 Login 2
4. F tbl_student
F
username F CHAR F 10
password F CHAR F 10
accesslevel F VARCHAR F 10
Mr.Warawut Khangkhan Chapter 17 Login 4
6. F F F
New Document > PHP
Save login.php
Mr.Warawut Khangkhan Chapter 17 Login 6
7. F F F
Mr.Warawut Khangkhan Chapter 17 Login 7
8. F F F
Textfield: username
Max Chars: 10
Textfield: password
Max Chars: 10
Value: Login Type: Password
Mr.Warawut Khangkhan Chapter 17 Login 8
9. F Log In User
Username Password
Mr.Warawut Khangkhan Chapter 17 Login 9
11. New Document > PHP
Save loginfailed.php
Link to login.php
Mr.Warawut Khangkhan Chapter 17 Login 11
12. F F PHP
F F F F F
F F
F F F PHP F
Mr.Warawut Khangkhan Chapter 17 Login 12
13. F F
New Document > PHP
Save testprotect.php
Welcome to My PHP Web Application
Mr.Warawut Khangkhan Chapter 17 Login 13
20. Logout
F F SESSION PHP
New Document > PHP
Save logout.php
Mr.Warawut Khangkhan Chapter 17 Login 20
24. Work Shop
F F (Open) display-student.php
(Save as) list-student.php
F Logout F list-student.php
F Restrict Access to Page
Mr.Warawut Khangkhan Chapter 17 Login 24