	 
		 
		 
		$salt1 = "qm&h*";
        $salt2 = "pg!@";
		$token = md5("$salt1$password$salt2");
		
		 if($username !="Username" &&  $password != null){
			 header("Location: customer/homepage.php"); 
			 
		/*	 $query = "select * from customers where username='$username' ";
			 $result = mysql_query($query);
			  $rowdata = mysql_fetch_array($result); 
				 
			    $pword =  $rowdata['password']; */
				
			 
			/* $sql = "select * from customers where username='$username' and password='$password' ";
			 $result2 = mysql_query($sql);
			 if($result2){ 
				 $rowd = mysql_fetch_array($result2);
				 
				  $fname = $rowd['fname'];
				  $lname = $rowd['lname'];
			      $username = $rowd['username']; 
	              $phone = $rowd['Phone'];
	              $email = $rowd['email'];
				  
					
		       $_SESSION['username'] =  $username;  
			   $_SESSION['person'] = $fname." &nbsp; &nbsp; ". $lname; 
		       $_SESSION['phone'] = $phone; 
		       $_SESSION['email'] = $email; 
			   $user = $fname."&nbsp; &nbsp;".$lname; 
			 
			   // save user 
		   setcookie("user", $user, strtotime('+30 days'), "/", "", "",  TRUE);
		   setcookie("username", $username , strtotime('+30 days'), "/", "", "",  TRUE);
		   setcookie("phone",  $phone, strtotime('+30 days'), "/", "", "",  TRUE);
		   setcookie("email", $email, strtotime('+30 days'), "/", "", "",  TRUE);  
           // navigate to user's page and call this session   
            header("Location: customer/homepage.php"); 
				 
			 }
			 else{
			  
			   echo ' <div class="col-md-offset-3 col-md-9">
                      <button id="btn-signup" type="button" class="btn btn-error"><i class="icon-hand-right"></i>Invalid Username and Password! </button>
                                         
                                    </div>';
		
		       
	
			 }  */
			 
		 }
		 else{
			   echo ' <div class="col-md-offset-3 col-md-9">
                      <button id="btn-signup" type="button" class="btn btn-error"><i class="icon-hand-right"></i>Enter your Login Details! </button>
                                         
                                    </div>';
		 }
		