> I'm no CGI expert, but my best guess is that you are not going to be able to
> stop the user from resending the data
>

[snip out a technique to assist in ignoring repeat data]

This deserves to be drilled into every beginning CGI programmers brain:

You cannot PREVENT the client from doing ANYTHING, because you can't
control the software at the client end.  The best you can hope for is
to gently persuade the client into clickpaths of righteousness.

A concrete example:  Form validation in javascript.  

Using javascript to do form validation is a *convenience* to the
normal user -- but, it does nothing to dissuade pathological software
from sending back bad data.  You must be prepared at the CGI end for
anything.  

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
        Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer  software  consists of  only  two  components: ones  and
zeros, in roughly equal proportions.   All that is required is to
sort them into the correct order.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to