I humbly submit the following idea for your consideration:

  1. Click on link to go to form, and they go to a page asking for username/password (or other authenticating tokens) (and advises that the site uses cookes you'll see why in a moment.
  2. Submitting username/password form checks against a database (be it full-blown database, or text file, or whatever).
  3. Set a cookie in their browser if successful, then refer/redirect them to the form page.
  4. If cookie is set, display form; otherwise, display an "access unavailable" message.
  5. Optionally, update the/another cookie with the number of times they have submitted, which can be checked against the maximum number of times you wish to allow them to submit.

I am sure there are more experienced monks here who may offer better/easier solutions. Good luck with your project.


In reply to Re: Password Protection for Web Page. by atcroft
in thread Password Protection for Web Page. by augamecock

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.