Hi,
I have an urgent issue.
I have a screen that allows the user to select something from a drop-down and then submit it. The form directs to the same page where, if data has been supplied, processing occurs based upon their drop-down selection.
What I want to do is, if they press refresh on their browser, not process the data again. However, if they select the same item from the drop-down and submit it again then this should work. Is there a way to do this?
Ideally I wanted to be able to clear out the contents of the form submission after processing it but this doesn't appear to work (I was putting $_POST=array()
).
Does anybody have any thoughts on how I might go about this without resorting to Javascript or diverting to another page on submission?
Thanks,
David.