hi,
I was wondering if there is a way that I can avoid having a user re-submit a form on using the refresh button on thier browser.
Lets see if I can explain this. when a form is submitted, it writes all of the fields into the database(MySql). One of the fields is a serial number field. I wrote a script that does a look up to see if that particular serial number has been in before and how long ago. If it's been in under a certain amount of time, I have a Javascript alert window telling you it's been here before. In that script I use the "include" stament to include another file. This all works great just like I want it to, except that if you were to press the refresh button, it will re-submit the form.
I am using a primary key in Mysql, so it will duplicate every thing except the primary key.
I've tried using the Header() statement, but when I do the Javascript alert window doesn't work.
Does anyone have any suggestions on how to resolve this?