Solved

when i post info and transfer it from when page to onther

Posted on 2008-10-25
1
192 Views
Last Modified: 2012-05-05
when i use the post method in order to trnsfer info fromone page to onthe every thing works fine but when i click on the refresh button i get this thng

to display tis page firefox mustsend information that will reapet any action (such as a sarch or order confirmation ) that was prformed earlier

how can i change this that when i click on refresh all the info that was gaten from the post i the page before this to be deleted ?
or any other methed will work fine
0
Comment
Question by:mgtm3
[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
1 Comment
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 500 total points
ID: 22805624
I have two different approaches, select one:

1) Create a querystring and redirect to the page with all parameters in the url. There can not be too many parameters, or rather, they can not be too long. (Sorry, don't know exactly how long, but less than 2000 characters). Populate the form with values from the querystring ($_GET).

2) Store the parameters in the database, assign a unique and secure token and redirect the user to the page with only the token in the querystring. Use the token to lookup the other parameters in the database, and populate the form.

To redirect, you use the PHP funtion header() to send a HTTP location header, like this:
header('Location: http://yourdomain.com/yourpage.php?'.$querystring);

Open in new window

0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 dynamically set the form action using jQuery.
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 …

624 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