July 24th, 2000, 09:42 PM
Join Date: Jul 2000
Time spent in forums: < 1 sec
Reputation Power: 0
I've set up a PHP3/MySQL authentication system (which I downloaded off the web) that requires members to register and login.
I would like to personalize my web content after a user logs into the system. For example: "Welcome back DMC! It's been awhile."
If the fields (in MySQL database) are:
..can I set a cookie for each field listed above to become varibles? And can I use these varibles throughout my site? For example: A member can fill out a Quiz and their "Real_name" and "email" shows up already within the HTML form.
This Login script includes an example of how to make a page look for a cookie. However, the ONLY cookie is set up for "user_name"
header("Location: *need to be logged in page*.html");
echo "<P>You are logged in as <B>$user_name</B>.</P>";
1. Do you think the login.php script somehow set the $user_name cookie already?
2. Can I easly set other cookies?
3. Am I on the right track....??