Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep posting over & over, etc.
Message
From
07/11/2000 15:03:09
 
 
To
All
General information
Forum:
Internet
Category:
Active Server Page
Title:
Keep posting over & over, etc.
Miscellaneous
Thread ID:
00438968
Message ID:
00438968
Views:
48
The way I built my asp pages, I have a hidden field to flag posting on every submit form and the posting page have codes like this to see if I need to post the data:

If Request.Form ("postcount")="yes" Then
PostCountData
End If

However, I've just found a problem with this approach. When the user manually refreshes the page by clicking on browser's refresh button, the data gets posted again and again. Since the value returned from Request.Form is the same ("yes" in this case), it just keeps posting regardless if it was already posted.

Is there an easy way to either check if posted already or set the form value to "no"? TIA.
It's "my" world. You're just living in it.
Next
Reply
Map
View

Click here to load this message in the networking platform