Im having problems login in,this is my script. i was able to login
before with number of user accounts i created, but for some reason now
im unable to login, please have i look at the script to see if there
anything wrong.am pretty stuck
thanks
<?
$from_url = $_POST["fromurl"];
$err = 0;
$memberid=64;
if ((isset($_POST["username"])) && (isset($_POST["passwd"]))) {
$memberid = $f->checkLoginPassword($_POST["username"],
$_POST["passwd"]);
echo($_POST["username"]);
$memberid=64;
if ($memberid 0) {
$_SESSION["memberid"] = $memberid;
if ($from_url == "") {
$from_url = "myhome";
}
header("Location: myhome");
exit;
} else {
$err = 1;
}
} else {
$err = 1;
}
if ($err == 1) {
$smarty = new Smarty();
$smarty->assign("baseurl", $config["baseurl"]);
if (isset($_POST["fromurl"])) {
$smarty->assign("fromurl", $_POST["fromurl"]);
}
$smarty->assign("wrong", 1);
$smarty->assign("memberid", $memberid);
$smarty->assign("stats", $stats);
$smarty->display("login.htm");
}
?>