Solved

Redirect Data to new page

Posted on 2009-05-13
2
214 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
Comment Utility
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
Comment Utility
session is most easily and security.

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now