Hello.

I see from your notice board that the issues covered here might be slightly out of my league, but since my question is very simple, I'm sure you guys will have no problem helping me out?

I am designing a site where the users need to register to access the info page. They must provide a username and a password. There is a page where new users can do this, and a different one for users who just want to log in with an existing username and password.

I need to use CGI scripts written in Perl to store the form data into a .dat file on a UNIX server.

How do I go about doing this? How do I store username and passwords so they are associated with eachother and can be retrieved when the user logs in again?

I know this is probably a very basic question, but I would be really really gratefull if somebody could help me out!

Thanks very much in advance to anybody who takes the time to help me!!

Chrissy

20040107 Edit by BazB: Changed title from 'Newbee..'


In reply to 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.