Php > Cookies
Complete, simple working example of login screen and check on a unique
Complete, simple working example of login screen and check on a unique page using php functions cookies and mysql database. "; //The use of the http header is inconsistent with many browser if you have //already setted a cookie. So, after the setcookie command the script uses //the meta tag to obtain the same result. }else{ header($loc); } }else{ ?>
Login
Welcome!
Username:
Password:
"); } } //After here the actual page starts and only registered user can see it. ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage