I have used the control app to create a login form. The login form is supposed to verify the authorized users and passwords before allowing access to the main application. However, I am unable to make it work to authenticate my Mssql Native Server. The onValidate event keeps prompting back the old message that I have coded in earlier. Even now that I have all the codes erased from the onValidate event, upon clicking the OK button, I still received the old error message, which prompted “OK”.
The code is somewhat like this:
$usr = {UserID};
$pwd = {Password};
$sql = “Select * from tblUser Where (userID = '”.$usr."’) AND (password = ‘".pwd."’)";
sc_lookup(ds, $sql);
if (isset({ds[0][0]}))
{
//echo “OK”;
sc_redir(CustomerList.php)
}
else
{
echo “Something is wrong”;
}
Help would be highly appreciated. I figured this has something to do with history cookies or something?
Thanks
George