Solved

Redirect Data to new page

Posted on 2009-05-13
2
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
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 …

635 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