You might want to try this...
When the form is submitted, send a cookie to the client's browser. So when the page is refreshed, have your code check for the presence of the cookie. If the cookie is present, it means the entry has already been added so have the script print a message such as "Your submisstion has already been processed".
What if the user has disabled cookies? In this case, when the form is accessed, set a cookie to the client's browser. When the form is submitted, check for the presence of this form-accessed cookie. If no cookie is present, it means cookies have been disabled and so the submission will not be processed. In other words, have the script check for the presence of cookies before allowing further processing.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.