session_start();if(empty($_GET['id'])){echo "error, variable vacia";}$_SESSION['idanterior'] = $_GET['id'];