K2V Member Login

if(isset($_POST['k2vlogin'])){
$request=array('email'=>$_POST['email'] , ‘password’=>$_POST['password']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘https://key2vegas.com/Sites/1/Main_2/user_check_api.php’);

curl_setopt($ch, CURLOPT_POST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$curl_results = curl_exec($ch);
curl_close($ch);
$res = json_decode($curl_results);
if($res->success== true){
echo ‘

Login Successfull.’;
}
else{
echo ‘

‘.$res->message.’

‘;
}
}
?>

Please enter your account information below to log in:

Email
Password