Viewed 44 times.
Posted on: 2012-12-20 12:34:49
Private: Yes
-----------------------------------------------
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;
}-----------------------------------------------
Upload a new document
here.