As no code here, so I only raise idea according to my experience =)

The possible output for a guest book are :
1. Thank you page
2. The same page as the guest book (but resulting on the process
of POST)
3. Redirect to the page same as the guest book(By GET method)

If case no. 1 , you may add another file with log on IP address and
sign Time. When a next sign is active, compair the IP and sign time
pairs along the log file. So if the sign time and IP are match, and the
time difference is shortern than a certain time period, than don't do
the sign(write) progress, but returning to some other page.

If case no. 2, you better re-write the result process, It's not a good
idea anyway.

If case no.3, you could make a time comes with the url.....
suppose before sign, guest is visiting http://somesite.com/guest.pl?page=0
and after sign, direct to http://somesite.com/guest.pl?page=0&1231203201231
People behavior on RELOAD a page mostly because can't see what they sign.
with this, cache will not affecting the result, they must see what they
sign. (if no
problem with your script)

have a nice day =)


----- Original Message -----
From: "Troy May" <[EMAIL PROTECTED]>
To: "Beginners CGI List" <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 3:58 PM
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]

Reply via email to