Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2007, 08:47
juliov2480
 
Fecha de Ingreso: marzo-2004
Ubicación: Canarias
Mensajes: 85
Antigüedad: 20 años, 1 mes
Puntos: 1
Pregunta No me pasa variables de una página a otra

Hola tengo un servidor Apache/2.2.2 (Win32) montado en local y cuando intento pasar unas variables de un formulario a otra página PHP para visualizarlas no me las muestra, se pierden. En un servidor en internet si me funciona. Porqué puede pasar esto. A continuación pongo el código de los dos archivos.

1er archivo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento</title>
</head>
<body>
<form name="form1" method="post" action="recibe_prueba_enviar.php">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="126">Titulo</td>
<td width="474"><input name="titulo" type="text" id="titulo"></td>
</tr>
<tr>
<td>Texto</td>
<td><input name="texto" type="text" id="texto"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Enviar"></td>
</tr>
</table>
</form>
</body>
</html>

2do archivo

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento</title>
</head>
<body>
<? echo $titulo; ?>
</body>
</html>

Gracias de antemano y hasta otra.