Form input processing

Discussion in 'Programming' started by escocia1, Nov 9, 2009.

  1. #1
    Using .htaccess i have a password protected folder online containing 7 files with one single user/pass combination.
    User is not allowed to see that 7 files are available.
    User enters 1 of 7 "Access Keys" in a simple HTML Form text input which is then processed (script?)
    User is then redirected automatically to the related file (for download) e.g.
    Access Key #1 redirects user to Protected File #1
    Access Key #4 redirects user to Protected File #4
    etc.

    What's the best way to implement this? Perl/CGI? PHP? Javascript?
     
    escocia1, Nov 9, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    this needs server side scripting, so javascript is out!

    perl/cgi & php are your options.

    I would suggest you to pick php for doing so..
     
    mastermunj, Nov 11, 2009 IP