Date: 09/26/00
- Next message: Arno A. Karner: "Re: [phplib] first gotcha i found in php4, phplib"
- Previous message: Jensen Tim-TAJENS1: "[phplib] HELP!!! Problem with Post Variables"
- In reply to: Jensen Tim-TAJENS1: "[phplib] HELP!!! Problem with Post Variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I had this or a similar problem about 7 months back. (See postings to this list
in mid-February). A snippet from the email I posted to this list when I found a
workaround:
"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 I came up with was to use:
$f = new form;
...
$f->start("formname", "POST", $sess->self_url());
At that time I had a further "bright idea" which I posted. But someone else
pointed out that my bright idea would fail for GET mode. So I stuck with the
approach here (if I remember correctly -- the project was eventually transferred
to Unix/Apache about a month later and I didn't have to worry about this any
longer).
But the "bright idea" had to do with extending ooforms to include the session as
a post variable. And PHPLib (as of version?) has an accessible instance method
$sess->hidden_session() which "adds a hidden form element containing the session
name and id." I feel that using this would be a better way to go than the
$f->start("formname", "POST", $sess->self_url()) that I used. But I have not
tested it.
Hope this helps.
Cheers!
Mike Green
Jensen Tim-TAJENS1 wrote:
> Hey all,
>
> I'm developing a web application using PHP (3.0.16) and PHPLIB (7.2c) and an
> IIS web server. The application generates the first web page just fine but
> when I submit the form none of the POST variables make it through. If I use
> GET the data is passed ok but Get is not a viable option. I've looked at
> the server, browser and PHP and PHPLIB configurations. I can not see what
> would be causing this problem. The code works great on another server but
> it is a development system and not available for use as a deployment system.
> I have other web applications running on this system using the same PHP and
> PHPLIB software so I know that I have configured these correctly. Does
> anyone have any suggestions, I'm desperate.
>
> Thanks,
>
> --Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Arno A. Karner: "Re: [phplib] first gotcha i found in php4, phplib"
- Previous message: Jensen Tim-TAJENS1: "[phplib] HELP!!! Problem with Post Variables"
- In reply to: Jensen Tim-TAJENS1: "[phplib] HELP!!! Problem with Post Variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

