I have a website that uses Forms, and if I complete the form fields,
submit the form, realise that there was an error or omission, and then
hit the Back button, the form fields are all empty. This is extremely
frustrating.
However, what's more frustrating is that this behaviour doesn't happen
all of the time - sometimes the field contents will still be there,
and other times the fields will be empty. Also, sometimes the one form
will not retain its input whereas another form will.
Can anyone please explain what's going on? Is it an HTML issue or an
IE thing? More importantly, how do I fix it so that the form field
contents are always retained when I hit the Back button?
For background it's the same whether I use IE5 or IE6 - haven't tried
any other browsers. Also most of the forms are on basic JSPs, or JSPs
with Struts; but there doesn't seem to be any consistency in which
pages display this behaviour. Sometimes it's the simple JSPs and other
times it's the Struts ones.
Any help would be gratefully received.