473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Hitting "Back" loses all GET/POST data....

How do I create a form that allows one to submit a form, then press
the
"BACK" button on the browser, and allow the user to see the data he
posted?
It seems as though this information is lost. For instance,

<form method="get" action="/contact/default.asp" name="ContactForm">
....
</form>

for instance, leaving a feedback at

http://www.baltimoresun.com/about/ba...back.htmlstory

and pressing the back button on the browser wipes out all feedback
fields I just entered...help!

thanks
Jul 19 '05 #1
3 2044
Do you have any anti-caching code in your page? I believe that most
browsers will show you what you entered if they aren't forced to pull a
fresh page on every visit.

Ray at work

"Greg Alaksdjflk" <Gr***********@bigfoot.com> wrote in message
news:73**************************@posting.google.c om...
How do I create a form that allows one to submit a form, then press
the
"BACK" button on the browser, and allow the user to see the data he
posted?
It seems as though this information is lost. For instance,

<form method="get" action="/contact/default.asp" name="ContactForm">
...
</form>

for instance, leaving a feedback at

http://www.baltimoresun.com/about/ba...back.htmlstory

and pressing the back button on the browser wipes out all feedback
fields I just entered...help!

thanks

Jul 19 '05 #2
The browser normally *does* retain all that. People usually are asking how
to make it stop doing it. You have to go out of you way to make it behave as
it is now.
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Greg Alaksdjflk" <Gr***********@bigfoot.com> wrote in message
news:73**************************@posting.google.c om...
How do I create a form that allows one to submit a form, then press
the
"BACK" button on the browser, and allow the user to see the data he
posted?
It seems as though this information is lost. For instance,

<form method="get" action="/contact/default.asp" name="ContactForm">
...
</form>

for instance, leaving a feedback at

http://www.baltimoresun.com/about/ba...back.htmlstory

and pressing the back button on the browser wipes out all feedback
fields I just entered...help!

thanks

Jul 19 '05 #3
if the previous page u requested is "default.asp" using Back (<input
type=submit value=back>) then it is certainly going to wipe out the
contents. bcaoz that page is reloaded
Amit shinde

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ray Torres | last post by:
I would appreciate any help with the following problem. I have several different htm pages with (simalar) forms that are processed by the same PHP script. If there is data missing on the form,...
3
by: Simon Wigzell | last post by:
I'm using : window.location.href = to redirect to a web page. From the new webpage, when you click the browser "Back" button you of course end up on the same old page and get redirected...
6
by: Don Leverton | last post by:
Hi All, I've got a situation where I am developing an Access 97 app for a client, and am in the "beta testing" stage. I have split the app up, using the DB splitter, into front-end /back-end...
0
by: Henke | last post by:
Hi, I have done some research about my problem I have when using the "back button" in IE to go back to a page with two dropdown lists. The both dropdown lists are populated with data. The...
2
by: VB Programmer | last post by:
I created a page which I am using to prevent the user from hitting the BACK button. I'll call it my "Auto Jump" page. When it is called it basically auto-redirects to a page specified in the...
8
by: Coleen | last post by:
Yes, I know why would I want to create a back button when there is one on the browser? Because that's what the users want! they want a "Previous" button that they can click from any web page in...
2
by: eholz1 | last post by:
Hello PHP Group, I have a php page that calls another php page to load a image from a database (mysql) in to the calling page. It works like this: first_view.php has <img src="image.php?img=5"...
3
by: Chris | last post by:
I have a page that displays a datalist of multiple data items. In each dataitem I have gridviews that are pagable. It looks simular as I show below. I just want a way of hitting the gridview...
9
by: Kelii | last post by:
Currently I have a button that allows the user to "Close Company" - at the moment it doesn't do anything :D I would like the button to "disconnect" the back end then show my Open Company form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.