Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
This isn't the easiest project to learn Perl with, but it's a lot more exciting than making "Hello world!" programs. I myself learned Perl by making an online forum, complete with login and managing sessions through cookies. I'll give you a few pointers, and then if you have more questions, come back and post some specifics.

  • Read Ovid's CGI course - the entire thing. If you find yourself getting impatient with reading, then take what you learned to go code some, and then come back to the CGI course later and read some more.
  • An easy way to track a session is through a cookie. Cookies can be set through javascript, or through the page headers.
  • Start small and code modular. Start with a plain text delimited file for usernames and passwords, and write a subroutine that verifies a user's credentials as input. This is a great way to get logins working, and allows for easy debugging (if you need to check that a password for a new account is getting stores correctly, it's plain text in the file). Once everything is working correctly, you can worry about upgrading your security to the point at which you feel comfortable.

Good luck, and have fun.


In reply to Re: Create CGI login for webpage by swkronenfeld
in thread Create CGI login for webpage by Biotachyonic

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found