Originally Posted by bjarneo
I think you should read more about basic php and cookies. Then if you still don't know how to do it, ask.
I agree, have a look at the php manual. That explains it well with some nice examples. If it is still causing you problems, come back and post some code as well