Click to See Complete Forum and Search --> : Getting a form to reload without duplicate submission


Nicodemas
09-26-2003, 07:48 AM
I have a page that opens a pop up window which a user can use to invoke an update statement from, and then this pop is supposed to close, refreshing the opener so that the update statement reflects for the user on the web page.

However, in my onSubmit and onUnload statements, I've tried a couple things to reolad the page but nothing works. How do you stop a page from either resubmitting the form information on refresh?

Ribeyed
09-26-2003, 01:47 PM
hi,
just pass a value from the pop up page.

so pass a value like:


dontruncode = "yes"


then on your first page encapsulate all your code like this:



dontruncode = request.form("dontruncode")

if dontruncode = "yes" then
'just display the form
else
'if dontruncode is equal to nothing then the form from the pop up window has not bee submitted. Original code for display the page first time would be here.

end if

end




hope this helps.