Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Repeated script execution after pressing Backspace button

Status
Not open for further replies.

piotrmat

MIS
Jun 3, 2002
2
PL
Hi,

i have got following problem:

1. user puts text to the text field and presses submit
2. then post-submit page is loaded where I placed script adding data to database
3. then user goes for example to the other page (main menu, etc) and then when he presses backspace button he will return to the previous page where the adding script will be executed again and i will have two identical records in my database. How to block it?

rgds,
piotrmat

 
You can do it using Session variables, for example change the value of Session("Flag") from 0 to 1 when data i added.

terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top