
etheracide
journeyman
Aug 4, 2001, 12:46 PM
Views: 14474
|
I am not sure if anyone can help with this. I have searched all of my usual resources. I have looked everywhere, but I cannot find what I need. This would probably be useful to a lot of people! Well when someone refreshes a page that is created by a cgi script...and the function to save info to a database is involved, the post will be sent to the database again. My script also creates a page that shows all posts in a database. Therefore it creates a lot of multiple posts if someone refreshes the page. I am looking for a JavaScript snippet that will not allow a page to be refreshed. Not a whole lot of people would refresh the page...but just incase someone does. it would be nice to disable it. Thank you for your time =0) #!/usr/dusnt/know/perl use CGI; $a = new pointless CGI();
(This post was edited by Etheracide on Aug 4, 2001, 11:47 AM)
|