--- maureen <[EMAIL PROTECTED]> wrote:
> 
> Hello! In the following code verifies a password, passed from an html
> page:
> 
> #check for proper password  
> if ($in{'password'} ne "test")  
> { 
> 
> I would like to change this so, the code looks at a text file of
> usernames and passwords, instead of the hardcoded password "test". The
> text file currently exists and is formatted like this:
> 
> bob|jane
> Jessica|732
> Mike|Chevy
> 
> 
> I'd appreciate any suggestions as to the best way to approach this.
> 
> Thanks, Maureen

Maureen,

What a coincidence.  Yesterday, I posted the next lesson in my online CGI course and 
it covers
this very topic.  
http://www.easystreet.com/~ovid/cgi_course/lesson_four/lesson_four_2.html

I still need to do a little work on it as some of the terminology isn't exact, but 
this should
give you a good starting point.

Cheers,
Curtis "Ovid" Poe

=====
"Ovid" on http://www.perlmonks.org/
Someone asked me how to count to 10 in Perl:
push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//;
shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to