internet explorer not storing checkbox on back button php
Get the solution ↓↓↓I'm building a php multiple choice style application online as part of a survey tool for a project and it all seems to be fine apart from when I test inside internet explorer, no surprise there.
When I click the submit my answers button within IE the application then checks whether the user has entered the right answer or returns an error in an array.
the problem is that when I use the javascript go back -1 function the checkboxes are blank instead of being "Ticked". It works for every other browser.
Can anyone help?
Thanks
Answer
Solution:
You cannot rely on the browser vendors (IE, Firefox, Chrome etc) implementation for this behavior. Maybe in IE 10 this will work - maybe in Firefox 3.6 it won't etc.
If you want to persist your form values without posting the data viaPOST
- you will have to store them in a cookie (or in newer browsers the local storage maybe).
I guess it would be better for your survey script to post the data and intercept forward/back submits on the server side.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: ftp_put(): can't open that file: no such file or directory
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.