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

Here's my problem: I need a script which will accept data from a form, compare it to data in a file, and allow the user access to another page where they can download various files. The problem is that I have searched hours & hours and hundreds of sites but can not find an acceptable script. Of those that appear to be promising, the vast majority(websites or scripts) no longer exists. And they all appear to be many, many, years old. Unfortunately I am not proficient enough to write my own, just know enough to be able to modify someone elses. If anyone could point me to a website where I could download a script I would be VERY grateful.

Replies are listed 'Best First'.
Re: handling form data
by thomas895 (Deacon) on Aug 24, 2014 at 03:48 UTC

    You might want to try CGI(::Lite|::Minimal) and follow one of the many online tutorials(of varying quality) available on the internet since the late '90s. Ovid has published one such tutorial on how to use it.

    CGI.pm may be old, bloated, and a popular object of ire, but it Just Works, which is a good enough reason for many.

    -Thomas
    "Excuse me for butting in, but I'm interrupt-driven..."

        I suggested to use one of the CGI's because not everyone wants to have to learn an entirely new framework to do some simple form processing. If all I need is param() and header(), there is no way I am using Dancer.

        -Thomas
        "Excuse me for butting in, but I'm interrupt-driven..."
Re: handling form data
by GotToBTru (Prior) on Aug 24, 2014 at 03:39 UTC

    I think your post title is confusing. Perhaps "handling secure logins".

    1 Peter 4:10
Re: handling form data
by Anonymous Monk on Aug 24, 2014 at 01:20 UTC

    Could you be more specific on the specs, such as the comparison that this script is supposed to do? Is it some kind of login? (There's probably several CMSs out there that would have a feature like that.)

      User would enter email address, an id number, and a password. If all 3 match what is in the file, they would be allowed to go to the download page. Don't know how much more specific I can be.
Re: handling form data
by Anonymous Monk on Aug 24, 2014 at 07:51 UTC

    Here you go Re: Testing password variable and more

    If you're new its probably still all too confusing (there is a lot to know), I might write up a really simple but "secure" mojo version later

      Well color me Disappointed! I ask if anyone could tell me where to find a simple script and I get criticism of my title, directions to tutorials, other stuff I have no idea what is, and NOT ONE person has been helpful. I believe I was perfectly clear that I am not proficient, therefore none of your "help" is help. Methinks you "monks" have forgotten what it was once like to be as I am.

        Actually, many of us do remember .. and we also remember how much that sucked. Many of us have been in the practice of helping others with their computer issues for as long as we have been learning ourselves. We have learned, through long experience, that giving answers away can be worse than not answering at all. That has to be especially true in anything related to security! And, to be honest, when somebody wants free help setting up a system that very well may be a profit situation for themselves .. well anyway.

        Not one helped? Nonsense! We're here to help you help yourself. That might be more work than you are willing to take on, and that's fine. I suggest you hire a consultant.

        1 Peter 4:10

        Nope. We haven't forgotten. We were just more willing to learn than you appear to be. Good luck with that attitude.

        The node you replied to contains a link to working code plus a patch to do what you want. Plus, it says "I might write up a really simple but "secure" mojo version later".

        "not one person has been helpful" appears to be the exact opposite of the appropriate response.

        and NOT ONE person has been helpful

        Why not?