Code: Select all
function verify_login($user, $pass)
{
global $db_connection;
$sql = "SELECT password FROM logins WHERE username='$user';";
$result = odbc_exec($db_connection, $sql);
if (crypt($pass, "hello") == odbc_result($result, 'password'))
header("Location: mail_form.php");
else
echo "<center><font color=\"#CC0000\">Login invalid. Please try again.</font></center><br>";
}Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at c:\wwwroot\taxsale\mail\login.php:6) in c:\wwwroot\taxsale\mail\login.php on line 48Thanks,
Jason