php4-beta | 200004
Date: 04/29/00
- Next message: Thies C. Arntzen: "[PHP4BETA] cvs: /php4 TODO"
- Previous message: Manuel Lemos: "[PHP4BETA] Metabase release of 2000-04-28"
- In reply to: Cynic: "[PHP4BETA] cookie, post method form, cycling background"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I think the problem is that you set the cookie _on the client's browser_
when the new page is loaded - however when you access cookies you access the
data that is sent _from the client's browser_ to the server, and the new
cookie is only sent to the browser the next time a page is requested from
the server.
A workaround would be to use another page for setting the cookie and then
redirecting the user to the counter page.
Regards
Christian
----- Original Message -----
From: "Cynic" <cynic <email protected>>
To: <php4beta <email protected>>
Sent: Saturday, April 29, 2000 3:21 AM
Subject: [PHP4BETA] cookie, post method form, cycling background
> This is my first attempt with cookies, I've run into a prob,
> and unfortunatelly, it's 3 AM here. Just can't see it.
> Apache / 4b RC2-dev on NT, MSIE5.0 & CC4.7 on NT
>
> goal: 5 backgrounds. User clicks the submit button, next
> backbround is displayed, and its number is stored in a cookie.
> 1 -> 2 -> 3 -> 4 -> 5 -> 1 -> 2 ...
>
> The prob:
>
> display the page, submit the form... nothing happens. (1) submit
> again, get the next background... ok. go someplace else, then
> back to the page (or reload the page), get the next background.
> (2) submit the form, nothing happens, submit again, get the next
> background.
>
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Thies C. Arntzen: "[PHP4BETA] cvs: /php4 TODO"
- Previous message: Manuel Lemos: "[PHP4BETA] Metabase release of 2000-04-28"
- In reply to: Cynic: "[PHP4BETA] cookie, post method form, cycling background"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

