Sorry but this query involves more than html/css. But it is about browser behavior
and there doesn't seem to be a forum here specifically for browser behavior.
I have an html/php form that submits to itself.
In this form I have numerous buttons (generic with ids)
when one of the buttons is clicked, the button id is assigned
to a hidden field. On the server side the php looks at the
hidden field name submission and decides what to do based
on the value that it received.
Since I am incrementally developing the page, it do a lot of edits and refinements.
Each time I want to reload the page to view the html and css edits, as well as test
So, the QUESTION. How can I prevent the browser from resubission on reload.
If I am working on a part of the form which removes a directory on the server.
I want to reload the page. The browser resubmits the last post request, which fails
reload the page with location.reload() and window.location = <same file>
but this will also cause a resubmission.