Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 15th, 2000, 02:19 PM
meeh82 meeh82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Riverside, CA
Posts: 63 meeh82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
When I first submit the information, the script runs fine, but if I press the 'back' button and enter new information for the variables, but not fill in all the variables I filled in before, and press submit it still carries over the information for all the variables.If new information is put in it will show the new information, but the old information for the blank variables will still show up. What can I do to delete the old variables if the 'back' button is used?

Reply With Quote
  #2  
Old September 16th, 2000, 06:16 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Put <meta http-equiv="Pragma" content="no-cache"> in your previous page.

Anyway, you should alter your script to take advantage of using hidden fields so your visitors need not to click the BACK button at all.

The logic is just like a guestbook preview page at which visitor should be able to make modification to the form fields.

It's fine for one to re-enter everything if your form has just one or two fields. Or else, your site gonna drive visitors away if it wiped out everything they entered.

[This message has been edited by freebsd (edited September 16, 2000).]

Reply With Quote
  #3  
Old September 18th, 2000, 04:27 PM
meeh82 meeh82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Riverside, CA
Posts: 63 meeh82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
It did not clear the variables in the post. This is not a form I am making, I am making a shopping cart and if they decide not to get a product they chose, they can press the back button and re-order, but the variables are still in the post

Reply With Quote
  #4  
Old September 19th, 2000, 05:41 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I'm not sure if this would solve your problem but instead of asking you visitors to push the back button why not put a link back to the page this way they will have a fresh page.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Variables won't erase if 'back' button is pushed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway