createNewStrollerItem($session); if(isset($_REQUEST["promocode"]) or $_COOKIE[promotion_code]!='') { if($_REQUEST["promocode"]!='' or $_COOKIE[promotion_code]!='') { if($_REQUEST["promocode"]!='') { $promocode=$_REQUEST["promocode"]; } if($_COOKIE['promotion_code']!='') { $promocode=$_COOKIE['promotion_code']; } if($_SESSION['promotion_code']!='') { $promocode=$_SESSION['promotion_code']; } $query=mysql_fetch_array(mysql_query("SELECT endDate FROM promotions WHERE promocode='$promocode'")); $enddate=$query[0]; $dd=date("Y-m-d"); if($enddate > $dd or $enddate == $dd) { $count22='1'; } else {$count22='0'; } if($count22>0) { if($_COOKIE['promotion_code']=='') { setcookie("promotion_code", $_REQUEST["promocode"], time() + 3600*24*60*60 , "/"); @$_SESSION['promotion_code']=$_REQUEST["promocode"]; } } else { setcookie("promotion_code", $_REQUEST["promocode"], time() - 3600*24*60*60 , "/"); @$_SESSION['promotion_code']=''; } } } $promocode = isset($_REQUEST["promocode"]) ? $_REQUEST["promocode"] : $_REQUEST["secretpromocode"]; $promocode = $cart->insertPromocode($promocode, $session); if(isset($_REQUEST['submit'])) { foreach($_REQUEST as $key=>$value) { $_REQUEST[$key] = removeQuotes($value); } $email = $_REQUEST['email']; $password = $_REQUEST['password']; if(strlen($email) < 1 || strlen($password) < 1) { $errorstring = "You must enter a username and password"; } else { $query = "SELECT customerId, firstName FROM customers where lcase(email)=lcase('$email') and password='$password'"; $result = mysql_query($query); if($row = mysql_fetch_assoc($result)) { $_SESSION['customerId']= $row['customerId']; $_SESSION['custid']= $row['customerId']; $_SESSION['firstName']= $row['firstName']; $_SESSION['lastName']= $row['lastName']; header('location:' .$clientRoot . 'my-account-settings.html') ; die(); } else { $query = "SELECT customerId, firstName FROM orderCustomersNNEW where lcase(email)=lcase('$email') and password='$password'"; $result = mysql_query($query); if($row = mysql_fetch_assoc($result)) { $_SESSION['customerId']= $row['customerId']; $_SESSION['custid']= $row['customerId']; $_SESSION['firstName']= $row['firstName']; $_SESSION['lastName']= $row['lastName']; header('location:' .$clientRoot . 'my-account-settings.html') ; die(); } //invalid login $errorstring = "Invalid login"; } } } $jscript = " "; include_header("solanova :: Account Login", "@import url('stylesheets/login.css');", $jscript); ?>

Account Login

$errorstring"; } ?>


New to Solanova? Create an Account