Need help with cookies

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a website and when users visit that site, I'd like to put a
cookie on their computer. Then I'd like to retreive the cookie so I
can actually view it. How would I go about doing that with php?

BTW, I know nothing about php. I only know basic html. I'm trying to
learn php but I'm having difficulties with it.

Re: Need help with cookies

Mike S. wrote:

Quoted text here. Click to load it

Hi Mike,

PHP has easy functions for that:

But you must learn a little PHP before using it. is the place to start looking and learning, or get a good book.
Most functions described (like setcookie) have descriptions that should get  
you going. Also read the usercontributed notes.

Erwin Moller

Re: Need help with cookies

Mike S. contained the following:

Quoted text here. Click to load it

And yet you know that you want to set a cookie?  Perhaps it might be
better if you let us know what problem you are trying to solve.

Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs

Site Timeline