Welcome to the forums.
To set a cookie in PHP, the basic syntax is setcookie('cookie_name', 'cookie_value', $time); where $time is the Unix timestamp of when you want the cookie to expire. Note that you have to set cookies before any output is sent to the browser. You can have as many cookies as you want, as long as you give them different names.
To read from a cookie you just need to use $_COOKIE['cookie_name'].
You may find the following site useful for more info on PHP and cookies: http://us2.php.net/setcookie
__________________
The interlocking pieces of web development: usability, performance, accessibility, and standards.
|