Tengo un script con este código:
Código:
El problema que tengo es que en otra página quiero mostrar los resultados de las variables de sesiones $_SESSION['country'] y $_SESSION['continente'] que he creado , pero no me los muestra. Pego a continuación el código de la otra página.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin título</title> <link href="estilos.css" rel="stylesheet" type="text/css" /> <link href="capas.css" rel="stylesheet" type="text/css" /> </head> <body> <? @session_start(); include("fns/fns.php"); if ( !$_SESSION['continente'] ) $_SESSION['continente'] = $_GET['continente']; if ( !$_SESSION['country'] ) $_SESSION['country'] = $_GET['country'];
Código:
Resumiendo, no muestra el continente ni el país , es decir que no puedo crear sesiones por algún motivo , y he visto la documentación de php pero no se que narices se me pasa ¿se me olvida algo?.<? @session_start(); require_once("fns/fns.php"); include("eu/".$_SESSION['country']."/language.php"); if ($_GET['city']) $city=$_GET['city']; echo $_SESSION['continente']; echo $_SESSION['country']; ?>
Un saludo y gracias de antemano a tod@s
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)