473,385 Members | 1,506 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,385 software developers and data experts.

Form input fields reset problem

Hi,

I have an HTML form (generated by php) which I am rendering in
Internet Explorer 6.

My original problem was that if the user submitted the form, and then
used the back button to return to the form (desirable ability), then
all the fields in the form would reset to their default values,
forcing the user to re-enter them to submit the form similarly as
previously.

I fixed most of those resets by doing (IE 6): Tools -Internet
Options (General tab) -Settings -Check for newer versions of
stored pages -Never -OK -Delete Files -Delete all offline
content (checked) -OK -OK.

This prevented selects and plain text fields from resetting. However,
some text fields with defaults set using JavaScript date libraries
continue to reset to their defaults.

Notes: this does not occur in Firefox. I am using frames populated
dynamically (javascript). Another highly similar page (static html
only, no php) does not exhibit this in the same browser.

Any help would be appreciated.

Thanks!
Dec 1 '07 #1
1 2039
On Nov 30, 8:16 pm, apstein <apst...@gmail.comwrote:
Hi,

I have an HTML form (generated by php) which I am rendering in
Internet Explorer 6.

My original problem was that if the user submitted the form, and then
used the back button to return to the form (desirable ability), then
all the fields in the form would reset to their default values,
forcing the user to re-enter them to submit the form similarly as
previously.

I fixed most of those resets by doing (IE 6): Tools -Internet
Options (General tab) -Settings -Check for newer versions of
stored pages -Never -OK -Delete Files -Delete all offline
content (checked) -OK -OK.

This prevented selects and plain text fields from resetting. However,
some text fields with defaults set using JavaScript date libraries
continue to reset to their defaults.

Notes: this does not occur in Firefox. I am using frames populated
dynamically (javascript). Another highly similar page (static html
only, no php) does not exhibit this in the same browser.

Any help would be appreciated.

Thanks!
And you would like for all the fields to keep the values the user
submitted?

This is easy to do in PHP. Try a search on "sticky forms PHP".

Alternatively, if you could validate the fields using javascript, you
would not need a sticky form.
Dec 1 '07 #2

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
7
by: pizzy | last post by:
PROBLEM: I CAN'T GET THE LAST RESUTS TO WORK CORRECTLY. I WOULD PROVIDE THE CODE (AND WILL IF REQUESTED). BUT IN MY OWN WORDS I AM TRYING TO HAVE THE FIRST FORM DYNAMICALLY CREATE INPUT BOXES...
7
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a...
2
by: Cerebral Believer | last post by:
Hi folks, Can anyone help me with this form: http://futurebydesign-music.com/_member/club_fbd_reg.php I have followed to coding instructions aas closely as I can, but I am getting errors...
1
by: fugaki | last post by:
Hi everyone I'm learning asp, and i downloaded this script to teach me how to post form data from a webpage to an access database. I put it on the server so i could make sure that it worked, and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.