Re: Forwarding $_POST[]...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux