Redirect Data to new page

Here is what i have

/page1.php
/action.php

On Page1 user fills in a form and it is submited to Page2 (which is practically invisible to the user)
now after page2 is done with some scripts it redirects the browser to page1.
Normally i found to open the page with GET to sufficient
 header ("Location: /page1.php?id=" . $curid);  

but now i have a response which is too long for GET, and i found on a previous post
that i cannot redirect a page with POST data, so how can i pass some arrays back?

This pages run using sessions if it is a solution.

LVL 1
CMDAIAsked:
Who is Participating?
 
smueller72Connect With a Mentor Commented:
you can use sessions (just $_SESSION instead of $_GET), or dump the data into array's via cookies. Just a matter of preference.
0
 
ycTINConnect With a Mentor Commented:
session is most easily and security.

http://www.sitepoint.com/forums/showthread.php?t=611236
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.