NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing some form values through to a redirected page...

nyphp at jimbishop.org nyphp at jimbishop.org
Fri Jan 31 16:38:44 EST 2003


> Upon a successful submission of the form on my PHP page, I use the
> header("Location: ") function to redirect to another page.  I'd like
> to carry over some form values over to the redirected page to use.  
> Is this possible?  Or is there another way to do this?  I don't think
> it's a good idea to embed the second page into the main PHP page as
> the main PHP page will be very long.


the easiest way is to just:

Location:  http://url.com/?name=value&name1=value1

then on the corresponding grab the values in the $_GET hash.








More information about the talk mailing list