Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
(jeffa) Re: session in perl
by jeffa (Bishop) on Nov 01, 2001 at 11:18 UTC
    I have no problem what so ever with your desire. In fact, I encourage you to do this.

    "So, how?"

    I thought you'd never ask. :)

    First, learn HTML forms. You will need a page that contains two text boxes and a submit button. The action will point to a Perl script that will check for the presence of values in the two text boxes. If the values are good, and match with some user in a flat file, DB file, or a database, then you can redirect them to the s.pl file thingy.

    You mention sessions - there are generaly 3 ways to keep state in a web application:

    1. hidden fields
    2. passing values in the query string
    3. Apache::Session
    The first two are okay, but the third, while carrying a steep learning curve is da bomb.

    Good luck, and please feel free to post code :)

    jeffa

Re: session in perl
by gt8073a (Hermit) on Nov 01, 2001 at 14:25 UTC
    if it is correct then display the s.pl file
    if you are not trying to do anything else, use your server's basic authorization.

    Will perl for money
    JJ Knitis
    (901) 756-7693
    gt8073a@industrialmusic.com