Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

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.

0
CMDAI
Asked:
CMDAI
2 Solutions
 
smueller72Commented:
you can use sessions (just $_SESSION instead of $_GET), or dump the data into array's via cookies. Just a matter of preference.
0
 
ycTINCommented:
session is most easily and security.

http://www.sitepoint.com/forums/showthread.php?t=611236
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now