Weird POST issue in form, but works with GET?

Weird POST issue in form, but works with GET?

Hi,

I've got a REALLY bizarre issue here :/

I have a form:

  1. <form action="post" method="/cgi-bin/script.cgi">
  2. .some form stuff
  3. </form>

Then just a basic script on that page:

  1. $(document).ready( function() {
  2.    alert("HERE");
  3. } );

Now, this works fine on the first page... then submit the form (and return to the same page, but with an error message telling them they didn't enter something right)... it works fine then, try submitting it again and then click back and it won't run the alert() or any code

The weird thing is that it  works fine with GET as the method, just not with POST.

Can anyone suggest a way around this? When we submit the form we are disabling the button - and this is causing all kinda issues when clients click back and want to tweak their form :(

TIA

Andy