Re: HTTP_Clients and Files - Part 2
| From: | cron at odi dot com dot br | Date: | Wed, 17 Nov 2004 12:02:13 +0000 |
| Subject: | Re: HTTP_Clients and Files - Part 2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15593@lists.php.net to get a copy of this message | ||
Hi,
If you use:
<form action="somefile.php?sessionID=313212" method=post>
<input type="submit" name="bnt_submit">
</form>
in somefile you can do:
$_GET["sessionID"]
$_POST["bnt_submit"]
with no problem
Angelo
----- Original Message -----
From: "Andrew Nagy" <asnagy@webitecture.org>
To: <pear-general@lists.php.net>
Sent: Monday, November 15, 2004 6:24 PM
Subject: [PEAR] HTTP_Clients and Files - Part 2
> Okay, I got HTTP_Client to work with files no problem (on some forms)
> however, the forms that use a session in the qurey string is causing me
> problems.
>
> Here is one scenario:
>
> 1. HTTP_Client posts my username and password info to a login page.
> 2. I am then redirected to a page that now presents me with a session id
> in the query string.
> 3. When I click on the submit button to download the file, i need to
> pass the session id as a hidden variable to the form.
>
> How can I get a variable from the query string from one post() response
> and then send it to my next post()?
>
> Anyone have any experience with this?
>
> Thanks
> Andrew
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>