Link to home
Start Free TrialLog in
Avatar of jyotiweb
jyotiweb

asked on

Retain data on the form when the page is backed in Netscape 4.7

I have developed an HTML page. This page is designed with a form to feed data in different fields like name, address etc. On this page I have provided a button to view another page with some additional information. After filling this form, I click on this button to view that another page. After viewing this another page, I click on back button to go back to the page where I have entered data in the form. The form page opens but the data fed by me earlier are lost. How do I retain the data entered in the form when I back to this page? This problem occurs in Netscape 4.7. In IE 5 it works fine. Please suggest a solution for this.
Avatar of CJ_S
CJ_S
Flag of Netherlands image

You can never be sure whether the data will stay or not. Best thing to do is to open the information page in a popup window. Another way is to store all values in cookies and when needed retrieve them again.

Regards,
CJ
There are a few options.  It is all a matter of how much work you want to put into the development.

The easiest solution is to open a new window with the additional information.  Making sure there is a "Close window" button.  But this may not work with your design.

Another solution is to use frames.  The second frame (set really small so it can't be seen by the user) with hidden form fields.  Either have any link run a script to fill in these fileds from the entries already made or enter them automatically "onchange".  The page would then fill in the fields onload from the hidden fileds in the "hidden" frame.

Alternatively, the same deal as the frames option except use cookies instead.  Create cookies when the fields are changed or a link is clicked.  And fill the fields using an onload statement.  If the cookies don't exist the values will be "".
Took me too long to type CJ. ;-)
*smiles* :-)
if you use a server side language such as Coldfusion or ASP, you can load the form data into an Array of Structs.  These structs can keep track of all of your data on the webpage.  Everytime you go to that page, load it with the information in the struct, this will populate data if it was added, or leave the boxes blank.
ASKER CERTIFIED SOLUTION
Avatar of GreyWolf_tx
GreyWolf_tx

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why was GreyWolf given the points when it was just a repost of what I said anyway?

I am glad I didn't get my suggestion accepted if the best you can give is a B.  Especially considering the question was answered and no request for more information was given.  I suggest you read the tips on questions and answers (https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3).

You are new here so that always gets a little grace.  Welcome to EE of course and I hope you stick around to ask more questions.  Please watch what others are doing and be keen to show high respect to the experts that deserve it.
Avatar of jyotiweb
jyotiweb

ASKER

I am extremly sorry for that. I appreciate your effort to answer my question. In future I will take care. Thanks for the solution and suggestions.
I am extremly sorry for that. I appreciate your effort to answer my question. In future I will take care. Thanks for the solution and suggestions.
yeah...and he said that cookies take up server memory???

does he know what a cookie is?