Many years ago I had to do the same thing, but I wasn't the sysadmin and thus couldn't change the apache config file to allow .htaccess. If you're in the same situation, I would speak kindly to the admin (bring cookies) and if the admin is a complete idiot (many are) and doesn't want to change anything on the server, I would resort to encrypting the data in textfiles. You would have to change the ownership of the file(s) to the user usually called 'nobody'. This is a special account used by the server. Make sure the permissions on the file are correct. You could play with the permissions to make the files a little bit more secure, but really This Is The Wrong Way To Do It. However, in life, you sometimes have to make do with what you have and lucky you have Perl. :)

In reply to Re: Using CGI to collect and store user data by jacques
in thread Using CGI to collect and store user data by Anonymous Monk

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.