What is happening is that the variables are still stored in the page he is displaying when the program handles the parameters that are sent via the GET or POST method. When the user refreshes the screen they send the parameters all over again. Probably the simplest way to circumvent this and still have the seamless transition would be to have the script handle the request and then redirect back to the main page where the results are displayed.
# For instance sub add_message { ## whatever code is used to add the guest book entry. print redirect ( -uri => "http://www.domain.com/folder/it/is/in/page.htm"); #must occur before print header; } Perl handles redirects very well, so the transition will be instant, unlike Java Scripting or META TAG refreshing. Hope that helps, R.A. Howard -----Original Message----- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 1:58 AM To: Beginners CGI List Subject: Refreshing a Guest Book type page Hello, I don't have a working example, this is for a friend. He says he has a guest book set up on his site. All is fine with it. People submit their entry, it takes you to a view page (dynamic, from the Perl program) where it shows you all the entries. But he says when people refresh that page, it posts the same message AGAIN. And it will keep doing that over and over. What can he put in his Perl code to make it stop doing that? So when people refresh the screen, it doesn't post their message again? It sounds like it's just keeping their message stored in the program's memory and refreshing that page makes it post again, but I'm not really sure how to make it stop. Thanks in advance for any help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]