Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Erasing form field data after submission? 1

Status
Not open for further replies.

WAHMom

Programmer
Dec 11, 2002
30
US
My employer had me develop a form for secure information submission utilizing a secure server and certificate. This form would likely be used at a group pc and the information to be submitted is confidential. They want to prevent anyone from reviewing the data by pressing the "back" button later. Short of asking the user to press "back" themselves and then use the "reset" button to delete the data, what can I do? I have searched and found no method to do this. Even a NASA webpage urged their own users to go back and erase their data after submission. Is this request that unusual?

Thanks for any help you can give!
 
not unusual at all.
Although this is a caching problem
you can try setting the page to no-cache with a meta tag to clear the values when the back button is used.
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

one other thing. I kept this in my favorites for a reason and this was the reason.
read
Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
actually add these to the page as well
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;0&quot;>
<META HTTP-EQUIV=&quot;Cache-Control&quot; CONTENT=&quot;no-cache, must-revalidate&quot;>
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>


I had to look for the write syntax [smile] Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
Thank You! Thank You! Thank You!!!!!!!

It worked beautifully! I have bookmarked this extremely fast and friendly site for future help and am checking my PayPal account right now to see how much of a donation I can make to keep this site going!

WOW!
 
Thanks for the star and glad to help

Especially thank you for donating when possible to
Tek-Tips. Very much appreciated by all the members


Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top