I need to know how to set cookies using PHP.
What I need to do is:
From a Gateway Page I have links to different areas of my site. When a link is clicked a page of regulations is shown, this page has an "I Accept" link on it. When the "I Accept" link is clicked the user is taken to their requested page. The next time the user accesses the requested page from the Gateway Page they will go straight to that page -- without seeing the regulations page again. The cookie should expire after 30 days so the user will see the regulations again after that time.
Can anyone please help me? I have a basic understanding of PHP.
Many thanks in advance.