Solved

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

Posted on 2008-10-25
1
189 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
if (is_singular not working 5 37
Why is PHP Storm giving me an undefined constant error? 4 36
php error 27 55
assigning javascript variable to php variable 8 31
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

680 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