FORM Submit and going back?


Whenever I have a jsp page generated by a Form submit and from that page if I go to another page and then hit the back button to go back to the previous page, IE gives me an error saying that the previous page was generated by submitting a form and due to security reasons, IE can't submit the form for me. So I have to hit the refresh button and then say retry to get to the page.

Is there anyway of avoiding it so that if the user clicks the back button, the form is automatically submitted and page is generated. I am using Method= "POST". Wasn't sure if this was a form submit problem or a jsp problem.

Please help.



Who is Participating?
jukkauusiConnect With a Mentor Commented:
I think You should make your form-answer page something like:

In Your form-page:
<form action="form_prosess.asp">

And form_process.asp
 // Code below process your form data
    rc = handleform();
 if(rc) {
<body>Form Processing Error</body>

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.