Clearing of the contact form
Posted: 09 March 2005 01:45 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  04-14-2004

I have contact form on which I check with a cgi formmailer to make shure I get the data the way I want it.
If I get a message from the formmailer to go back to the contact form to correct some data and I then go back with the browsers back button the whole contact form is empty. So the user has to enter all the fields again.

The same happens when I use {exp:email:contact_form}. Going back to the form shows all fields empty.

Can I prevent that? And how?

 Signature 

Werner Gusset | http://www.octave2media.ch

Profile
 
 
Posted: 09 March 2005 11:21 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

The behavior of “back” buttons in a browser is completely browser-dependent.  Some browsers handle it fine and repopulate the form with any data you had.  Other browsers don’t.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 10 March 2005 06:32 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  04-14-2004

Thanks Chris

It’s true that only Opera repopulates a form in EE.

Interesting is that the same form code on a php or html page gets repopulated with the back button in FF or IE.

So there must be something specific with EE.

 Signature 

Werner Gusset | http://www.octave2media.ch

Profile
 
 
Posted: 10 March 2005 09:40 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

You could look in the <head> of your pages in EE and make sure you don’t have any <meta> tags telling the browser not to cache things.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 10 March 2005 11:11 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  04-14-2004

I made the test page by simply copying the source code from the EE generated page. Thus, meta tags and the rest of the page are absolutely identical.

What I observe however is that by returning back to the EE page, it seems to reload something from the server.

Could it be it’s related to the way EE is handling URLs? Forms I’m using in Textpattern are also dynamically generated, but they still keep the information when returning back to them in Firefox or IE.

 Signature 

Werner Gusset | http://www.octave2media.ch

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 24
Total Topics: 82015 Total Anonymous Users: 18
Total Replies: 440812 Total Guests: 193
Total Posts: 522827    
Members ( View Memberlist )