Originally posted by Memnoch1207
Prior to the user submitting the for the first time set the Session("submit") value to true..after the form has been submitted set the Session("submit") value to false...
on the submit page check the session("submit") value then do your processing.
If(Session("submit") = true) then
submit the form
Session("submit") = False
Thanks so I was along the right lines, can you think of any other ways of preventing multiple submits, I've also used the following:
'check content was posted - to prevent linking to page from history
if Request.ServerVariables("request_method")<>"POST" then
Should this be enough or am I just being over cautious, the table I am submitting to could have two companies with exactly the same details being added / well the company name at least, so I can't realy scan the table to check for duplicates.
Unless I set a timestamp on the form and add that to the table and scan for duplicate timestamps when data is submitted to it. What do you think.