By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

Need help with cookies

P: n/a
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.

Feb 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mike S. wrote:
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.
Hi Mike,

PHP has easy functions for that:
http://nl2.php.net/manual/en/function.setcookie.php

But you must learn a little PHP before using it.
www.php.net 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.

Regards,
Erwin Moller
Feb 20 '07 #2

P: n/a
Message-ID: <11**********************@a75g2000cwd.googlegroups .comfrom
Mike S. contained the following:
>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.
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 http://www.ckdog.co.uk/rfdmaker/
Feb 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.