Re: Forwarding $_POST[]...

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

 



Session variables is a decent way.
Storing them in a DB session can be good too
It all depends on the data.

The dumbest (but still correct) way to do it is a for() loop that
creates a hidden input with the name/value pair for each variables you
want.

I would advise against resending the username/password over and over.

Simon

On 8/9/07, Tony Di Croce <dicroce@xxxxxxxxx> 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?
>
>    td
>
> --
> Publish technical articles @ skilledwords.com and get 100% of the
> ad-revenue!
> http://www.skilledwords.com
>

-- 
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