Without knowing whether there is data in $password, it's hard to say what the problem is. Your error message seems to point to the line comparing $data and $password, so the best test would be to print out these two values before that line.
print "\$password=$password\n"; print "\$data=$data\n"; Then you'll know which one is empty. -----Original Message----- From: Issa Mbodji [mailto:issambodji@;yahoo.com] Sent: Tuesday, October 22, 2002 5:22 PM To: Stovall, Adrian M. Subject: RE: Logging in Hello Adrian: Here is my code: use DBI; use DBD::ODBC; use warnings; use strict; use CGI qw(:standard); my $data; my $user; my $password; $user = param ("username"); $password = param ("password"); my $dbh = DBI->connect("dbi:ODBC:Registration9", "", "", {RaiseError=>1}); my $sql = "SELECT Password FROM Users WHERE UserName = ? "; my $sth = $dbh->prepare($sql); $sth->execute($user); $data = $sth->fetch; if ($data eq $password) { print (Something) } else { print (Something else) } and here is the error message I am getting: use of an uninitialized value eq.... Thanks for any help you can provide Mame Mbodji "Stovall, Adrian M." <[EMAIL PROTECTED]> wrote: That is an extremely broad question. Why don't you post the code for your log-in page for starters...it's hard to help without knowing what's going on. Saying that you've tried everything, is like me telling a mechanic "I looked all over, but I couldn;t find anything wrong with the engine."...we need to look under the hood :) -----Original Message----- From: Issa Mbodji [mailto:issambodji@;yahoo.com] Sent: Monday, October 21, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: Logging in Hello: Does anyone understand how to authenticate a user from an Access database with 2 fields (username and password). The user is logging from an HTML form with 2 fields (username and password). I tried everything and it does not seem to work. Is there anything I need to do with the Apache server I am running? Any suggestion will be greatly appreciated. Mame Issa Mbodji 3201 Weeping Willow Ct # 33 Silver Spring, MD , 20906 Tel. (301) 603-0847 e-mail: [EMAIL PROTECTED] Do you Yahoo!? Y! Web Hosting - Let the expert host your web site Mame Issa Mbodji 3201 Weeping Willow Ct # 33 Silver Spring, MD , 20906 Tel. (301) 603-0847 e-mail: [EMAIL PROTECTED] Do you Yahoo!? Y! Web Hosting - Let the expert host your web site _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs