Re: Forwarding $_POST[]...
| From: | Richard Lynch | Date: | Sat, 11 Aug 2007 02:00:08 +0000 |
| Subject: | Re: Forwarding $_POST[]... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260668@lists.php.net to get a copy of this message | ||
On Thu, August 9, 2007 1:04 pm, Tony Di Croce wrote:
> I keep wanting to do something, and either I dont know how to do it,
> or I'm
> doing something wrong and need to rethink things.
>
> Quite often, I have a form that submits to a php script via POST and
> after
> doing some processing (or more frequently, asking the user a
> question), I'd
> like to forward those $_POST[] vars to another script (or even the
> same
> script).
>
> I could do something complicated and store the $_POST vars in
> $_SESSION[],
> but what I'd rather do is simply add a var to $_POST[] and resubmit
> this to
> the same .php.
>
> Is their any way to do this, or do I need to rethink things?
Both. :-)
You can use http://php.net/curl to POST whatever you want,
wherever
you want.
But you probably should just re-think things and not have to do that
in the first place if it's your own web application you are building.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?