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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refreshing problem..

Status
Not open for further replies.

jkat

Programmer
Mar 9, 2001
17
0
0
US
Hey,
I have a data entry form that when a user enters data and presses submit, it takes them to a page that displays what they entered in a list type format (kinda like a message board, wink-wink).

What i want to prevent is theh problem that after the user arrives to the list page, if they hit refresh (to see if any other users added to the list) it resubmits what they submitted to get to that screen and then they have multiple entries listed..(repeats)

Any information is greatly appreciated!! Thanks a lot.

-Jason
 
what about using the server.varibles("http_referer") object to see how the page is called. if is it not the page with the form on it then don't execute the code...

strPage = server.variable("http_Referer")
call

if strPage = " then
call add_to_list
end if

sub add_to_list()
code goes here to add to list
end sub Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top