Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

10 Experts available now in Live!

Get 1:1 Help Now