Reply to Re: Reading a cookie

Your name:

Reply:


Posted by P Pulkkinen on 02/06/07 15:03

"Jerim79" <mylek@hotmail.com> kirjoitti
viestissδ:1170773276.017695.162470@v45g2000cwv.googlegroups.com...

> What I am trying to accomplish is to have a script that opens a
> cookie, reads a value, and then use a switch/case to take action based
> on that value in the cookie. I want to set the cookie manually, so I
> don't need setcookie(). I see that in PHP it stores the cookie in
> memory. Is there a way to have PHP just read a cookie from the desktop
> machine? Does it have to set it first? Am I better off with Javascript
> for this?

I hope i don't miss some point, but generally speaking:

1) On page #1 EITHER php during the page rendering OR client javascript
anytime, even later, SETS UP a cookie.
2) Person clicks a link submits a form to MOVE ON to page #2 on same domain.
3) On page #2 EITHER php OR client javascript READS that cookie and have
some fun with it (does it's thing).

Of course even both can set cookies and have fun together, but that' not the
point.

No comments on the final problem, but somehow i felt that this needed to be
written to clarify.

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация