Hello, I would like to make a script that if you have a cookie on your pc then you can view this page if not it shows a error page,
Thanks, Karamja
Read the manual and user contributed notes. There are plenty of examples.
Originally posted by Pig Read the manual and user contributed notes. There are plenty of examples.
Where can I find this?
www.phpbuilder.com/manual
or search directly from www.phpbuilder.com
J
Ok, I have had I look but I can't find anythink that will help me?!
http://us4.php.net/manual/en/function.setcookie.php
Read the user contributed notes. You can modify those to do what you want. All you need to do is set up page to deliver the cookie, and another that checks to see if it is there eg: if( isset($_COOKIE['my_var']) { do this; } else { do this; }
Karamja
Learn to look at the php manual - it will answer a lot of questions that you may have
http://www.php.net/function_name
HTH
GM