//Check for shopping cart cookie from user if(!isset($_COOKIE['3DmyCart'])){ // if a cookie does not exist, set it for 3 days (86400 = 1 day) $thisSession = session_id(); setcookie("3DmyCart", $thisSession, mktime()+259200, "/") or die("Could not set cookie"); }else{ // if a cookie already exists session_destroy(); session_id($_COOKIE['3DmyCart']); session_name("3Dcart"); session_start(); } //-------> // Connect to database include('secure/e_mysqli_connect.html'); //-------> //current URL of the Page. cart_update.html redirects back to this URL $current_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; //-------> if(isset($_GET['s'])){ $s=$_GET['s']; if (!is_numeric ($s)){ header("location:index.html"); }else{ if($s==1){ $cart_message = "
New Item Added to Cart!
"; }elseif($s==2){ $cart_message = "That Item is Already in Your Cart!
"; }else{ header("location:index.html"); } } } ?>We offer a variety of quality custom t-shirts.
products coming soon...
Shop with confidence on our
SSL Secured Website!