Sign In
echo $invalid; ?>Not Registered? Register Here.
// header("Location: cart.php?prod=".$_GET['prod']); $ip= $_SERVER['REMOTE_ADDR']; $conn = mysql_pconnect("edhorstm.ipowermysql.com","edhorst","&ecret") or die(mysql_error()); mysql_select_db("edhorstman",$conn); $query = mysql_query("SELECT * FROM user WHERE email = '".mysql_real_escape_string($_POST['user'])."' AND password = '".mysql_real_escape_string($_POST['pass'])."'",$conn) or die ; $rows = mysql_num_rows($query); $assoc = mysql_fetch_assoc($query); if ($ip > 0) { setCookie("userid",$ip,time()+60*60*24*30); header("Location: cart.php?prod=".$_GET['prod']); } else { setCookie("userid",$ip,time()+60*60*24*30); header("Location: cart.php?prod=".$_GET['prod']); } if ($_COOKIE['userid']) { header("Location: cart.php?prod=".$_GET['prod']); } ?>
include("../include/nav.php"); ?> | ||||||||
Account Login |
||||||||