Created
March 2, 2014 18:05
-
-
Save nicolapiz/9310822 to your computer and use it in GitHub Desktop.
php que asigna los valores del formulario a las variables de sesion y que es llamado por medio de ajax por Ej5.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
session_start(); | |
if(isset($_SESSION["ses_id"])){ | |
$_SESSION["id"]=$_POST["id"]; | |
$_SESSION["name"]=$_POST["name"]; | |
$_SESSION["surname"]=$_POST["surname"]; | |
}else{ | |
header("location:Ej5.php"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment