> Hello again.
> I'm trying to write a script for uploading some files, but I
> want it to be password protected, giving this way restricted
> acces to some users. I don't want to set a password for the
> directory where the script lies on, I'd prefeer the
> protection beeing inside the script.
>
> I am asking you for some advises on how to do this. 8-)
> Any Idea on how to drive this task will be very appreciated.
use CGI qw/:standard/;
$secretpass = 'joemama';
$password = param('password');
if($password ne $secretpass) { print "Sorry sucker wrong
password";&print_lofin_screen;exit; }
The problemm with this is :
1) you have your secretpass in plaintext - you may want to implement some security
there
2) you have to pass the $password with every form submission and link to itself.
Hope that helps
DMuey
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]