PDA

View Full Version : Do not update same data again on refreshing the page (perCGI)


shorye
06-02-2008, 03:07 AM
Hi All,

I am working perl CGI but the problem is when I am refreshing the page, previously submitted data is getting updated automatically in DB again and again. Please suggest.

KevinADC
06-02-2008, 09:54 PM
that is typical of all forms that submit data via the POST method. You should not be refreshing the page. Typically what you do is redirect the user after they submit the form, just like this forum does, first you see a "thank you" page then you get redirected to the thread you posted in.