Date: 02/18/00
- Next message: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Previous message: Manuel Lemos: "Re: [PHPLIB] Re: [PHP3] Re: Anybody got a load tester?"
- In reply to: Mike Green: "[PHPLIB] $HTTP_POST_VARS empty in fallback mode"
- Next in thread: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Reply: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hallelujah!!! The penny dropped (ka-ching!). My form actions were not
including the session id in their query string wherever I use ooforms. Since
the session id was not being passed, a new session was being forced -- and the
posted variables were being lost in the redirection involved.
The solution (without extending ooforms, which may be a better way to go) is:
$f = new form;
...
$f->start("formname", "POST", $sess->self_url());
(I had been using just $f->start("formname"); since that defaults to POST and
returning to the submitting page -- but is the bare $PHP_SELF, without the
appended query string with the session id.)
Cheers!!! (Really!)
Mike Green
Mike Green wrote:
> I had earlier posted a question with the subject "NT/IIS: PHPLIB can't
> set cookies, $HTTP_POST_VARS empty."
>
> I now find that with Apache and either *nix or NT the $HTTP_POST_VARS
> array is empty if the system is in fallback mode (i.e. if I set
> $fallback_mode = "get"; and the browser does not accept cookies) --
> with an apparent odd exception: the login process.
>
> I've been trying for many hours now to untangle this, including
> searching the archives and the code. And perhaps if I spend enough more
> hours I will. But at this point I'm putting out an appeal for HELP ;-(
> please!
>
> I really need to be able to pass form entries by post, not get. And the
> customer insists that they must be able to serve people who won't or
> can't accept cookies. They are willing to use Apache instead of IIS
> (their normal web server) if that is necessary.
>
> The fact that the login process successfully passes variables using get
> when in the fallback mode make me think that there is hope. But, as I
> indicated, I've not been able to find my way through this on my own so
> far...
>
> Many, many thanks in advance!
>
> Cheers? ;-)
>
> Mike Green
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
-- Mike Green SaeSolved:: http://www.saesolved.com http://www.widgetchuck.com http://www.sitewidgets.com- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Previous message: Manuel Lemos: "Re: [PHPLIB] Re: [PHP3] Re: Anybody got a load tester?"
- In reply to: Mike Green: "[PHPLIB] $HTTP_POST_VARS empty in fallback mode"
- Next in thread: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Reply: Mike Green: "Re: [PHPLIB] (extension to ooforms) $HTTP_POST_VARS empty in fallback mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

