# ...
# check login credentials (username and password)
# set $bAuthenticated = 1 # if username/password correct else set to 0
# ...
 
if ($bAuthenticated) {
    print "Location: successful_login.html\n\n";
} else {
    print "Location: bad_login.html\n\n";
}
 
-----Original Message-----
From: Rodrigo [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:57 PM
To: 'Toby Stuart'
Subject: RES: Open an Html document

What do you wish to do with the HTML file once it is open?

 

The thing is that I need to produce the following:

 

A Perl program that access two text files, these files will store the login and the other the password of a series of members.

The Perl program will then retrieve the logins written on the text file and compare the received login from the form with all the logins written on the file, if it finds a match, then it will do the same for the password on the password file.

I want it to go to one URL address if they are both right and to another if its wrong.

 

Thanks,

Rodrigo.

Reply via email to