|
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]
|