"Untitled Post" - Views: 87 · Hits: 87 - Type: Unlisted

session_start();
header("Access-Control-Allow-Origin: *");
$action = @$_POST["action"];

switch($action)
{
	case "register":
		$sub_action = @$_POST["sub_action"];
		switch($sub_action)
		{
			case "register_validate":
				// I removed most of the code so that it is not to big, for now I will create the sessions here
				$_SESSION["cell_is_good"] = "yes";
				$_SESSION["email_is_good"] = "yes";
				echo json_encode($_SESSION);
				unset($_SESSION["cell_is_good"]);
				unset($_SESSION["email_is_good"]);
			break;

		}
	break;
}