Solved

Redirect Data to new page

Posted on 2009-05-13
2
217 Views
Last Modified: 2012-05-06
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
Comment
Question by:CMDAI
2 Comments
 
LVL 3

Accepted Solution

by:
smueller72 earned 400 total points
ID: 24376007
you can use sessions (just $_SESSION instead of $_GET), or dump the data into array's via cookies. Just a matter of preference.
0
 
LVL 7

Assisted Solution

by:ycTIN
ycTIN earned 100 total points
ID: 24376089
session is most easily and security.

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Move wordpress site 3 38
curl SSL certificate unable to get local issuer certificate 15 64
Eloquent ORM manual paginator defaults to simple 2 21
PHP not parsing ' character 12 38
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question