Skip to content

Instantly share code, notes, and snippets.

@nicolapiz
Created March 2, 2014 18:05
Show Gist options
  • Save nicolapiz/9310822 to your computer and use it in GitHub Desktop.
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
<?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