Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2010, 01:27
Screaner
 
Fecha de Ingreso: mayo-2010
Mensajes: 15
Antigüedad: 14 años
Puntos: 0
Problemas con el paso de variables mediante URL

Tengo un calendario hecho en php con dos archivos Index.php y Calendario.php. Cuando intento pasar las variables mediante URL me aparece este texto
http://s3.subirimagenes.com:81/privadas/previo/thump_987783calendario.jpg
http://s3.subirimagenes.com:81/privadas/previo/thump_987784calendario2.jpg
Este es el contenido de Index.php
<html>
<head>
<title>Calendario</title>
</head>
<body>
<div align="center">
<?php
require("Calendario.php");
if ($_GET){
$Mes=$Nuevo_Mes;
$Ano=$Nuevo_Ano;
$Dia=$Dia;
$Fecha=$Ano."-".$Mes."-".$Dia;
} else {
$Mes=date("n");
$Ano=date("Y");
$Dia=date("d");
$Fecha=$Ano."-".$Mes."-".$Dia;
}
echo "Fecha Seleccionada <input type='text' name='Fecha' value='$Fecha'>";
Mostrar_Calendario($Dia,$Mes,$Ano);
?>
</div>
</body>
</html>

Y este el contenido de Calendario.php de donde se mandan las variables

$Mes_Anterior=$Mes-1;
$Ano_Anterior=$Ano;
if ($Mes_Anterior==0){
$Ano_Anterior--;
$Mes_Anterior=12;
}
$Mes_Siguiente=$Mes+1;
$Ano_Siguiente=$Ano;
if ($Mes_Siguiente==13){
$Ano_Siguiente++;
$Mes_Siguiente=1;
}
echo "<table width='250'>";
echo " <tr>
<td align='center' colspan='2'><a style='color:red;text-decoration:none;' href='Index.php?Dia=1&Nuevo_Mes=$Mes_Anterior&Nuev o_Ano=$Ano_Anterior'>&lt;&lt;</a></td>
<td align='center' colspan='3'>$Nombre_Mes - $Ano</td>
<td align='center' colspan='2'><a style='color:red;text-decoration:none;' href='Index.php?Dia=1&Nuevo_Mes=$Mes_Siguiente&Nue vo_Ano=$Ano_Siguiente'>&gt;&gt;</a></td>
</tr>";
a ver si me podeis ayudar con esto, un saludo y gracias.