http://qs321.pair.com?node_id=280882


in reply to A rotten cookie

Merlyn wrote a very good column on Basic cookie management. Look at lines 8 through 30 for the example, but be sure to read the whole article. Basically, it checks if the cookie exists, and if not it prints and posts the form, sets the cookie, then redirects to the same page.

Hope this helps