Location: PHPKode > scripts > Shopping Cart > shopping-cart/checkout.php
/*############################################################
A smarty based manageable shopping cart class 

Authors: Satya Prakash 
        Deepak Singh Tanwar.
if you have any queries please mail me at hide@address.com
############################################################
*/

	if(isset($_SESSION['ccUserfirstName']) && 
!empty($_SESSION['ccUserfirstName']))
	{
		header("Location: index.php?action=payment");
	}else{

		$Email = isset($_POST['umail'])?$_POST['umail']:'';;
		$isValid = validateEmail($Email); # check for valid email

		if($_SERVER['REQUEST_METHOD'] == 'POST'){
			if(!empty($_POST['upass']) and $isValid){
				$cart->checkout($_SESSION,$_REQUEST);
			}else{
				$msg = "* Please enter valid email and password";
			}
		}
	}
Return current item: Shopping Cart