after answering this several times. i thought it would be easier to write a quick FAQ for it. it asumes the login form names the login field userid and the password field pass, and that your using flatfile database, with the users user name as the filename.
#!/usr/local/bin/perl #this line tells the server that your using perl.
print "content-type: text/html\n\n"; # this sends out a greeting, and tells the browser your going to give it html content my $in; if ($ENV{'REQUEST_METHOD'} eq "GET") { $in = $ENV{'QUERY_STRING'}; } else { $in = <STDIN>; } # looks complicated, don't worry about how or why it works, basically it takes the data passed to the form that called the script, and dumps it into a varible ($in)
$in =~ s/\+/ /gi; $in =~ s/%(..)/pack("c",hex($1))/ge; #this takes the data and brings it into a more handleable english format (escapes it)