The error() message does not seem to be the problem as it is printing out the correct result in the other if statements in the code i posted. Yes both entries in row should be null when an incorrect username or password are entered. I expected the lineuse strict; use warnings;
to pick that up. Is this wrong?if($user_name ne $row[0] || $password ne $row[1]) { &error(); } }
In reply to Re^2: login page
by Anonymous Monk
in thread login page
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |