in reply to Re: CGI Refresh question
in thread CGI Refresh question

Thank you chromatic, but as I said in my post, my sample code is a simplistic demo of a much more complicated script. Counting had nothing to do with it, it was just a way to make it simple. As for the insecurity of the hidden tag, I'm not using it for security, I just use it track which app this button talks to. In other words, imagine I was writting the script for n counters, and you could reset the one of your choice. I am using hidden data for that.
for( 1..5 ) { print start_form(), hidden( -name=>"cntrnum", -value=>$_ ), submit( -name=>"action", -value=>"Reset Counter" ), end_form(), "\n\n"; }
The real heart of the question is how to keep the user from accidentally reseting the counter by refreshing. (And again, counters are just an easy substitute for a bigger task).

And yes, I suspect that the users are ignorant of "View Source" which is why I'm so worried that they will refresh themselves into a bad spot. Y'see?

Thanks again!