Hi! Im trying to doing framing with form posting variables. I have this code in Proyectos.php:
<?php
session_start();
$LasMarias=$POST['LasMarias'];
$Maricao=$POST['Maricao'];
$Yahuecas=$POST['Yahuecas'];
$Pajuil=$POST['Pajuil'];
$Bartolo=$POST['Bartolo'];
$Indiera=$POST['Indiera'];
$Divisoria=$POST['Divisoria'];
$Pastillo=$POST['Pastillo'];
$Carite=$POST['Carite'];
$LasMercedes=$POST['LasMercedes'];
$Aguirre=$POST['Aguirre'];
$Capa=$POST['Capa'];
$Jajome=$_POST['Jajome'];
if ($LasMarias == "1")
{
$Tabla = "lasmarias";
$ForoNombre = "Las Marias";
$SESSION['Tabla'] = $Tabla;
$SESSION['ForoNombre'] = $ForoNombre ;
Header("Location: ForoTabla.php");
}
else if($Maricao == "2")
{
$Tabla = "maricao";
$ForoNombre = "Maricao";
$SESSION['Tabla'] = $Tabla;
$SESSION['ForoNombre'] = $ForoNombre ;
Header("Location: ForoTabla.php");
}
etc...
And the ForoTabla.php goes this way:
<?php
session_start();
unset($SESSION['i']);
$Tabla = $SESSION['Tabla'];
$ForoNombre = $_SESSION['ForoNombre'];
$center = "center";
$top = "top";
$color = "#FFFF33";
$bwi = "41";
$left = "left";
$col = "col";
$wrap = "nowrap";
?>
<p align="center" class="style1">Foro del Proyecto <?php echo $ForoNombre;?></p>
<p align="center" class="style4">Cantidad de Mensajes:
<?php
$admin = "admin_name";
$PASW = "admin_passw";
$host = "ip_addr";
$connection = mysql_connect ($host, $admin, $PASW);
mysql_select_db("forortus",$connection);
$resu = mysql_query("select COUNT() from $Tabla",$connection);
$result = mysql_query("SELECT FROM $Tabla",$connection);
$myrow = mysql_fetch_array($result);
$resu24 = mysql_fetch_row($resu);
echo $resu24[0];
etc...
BUT, I CANT GET THE VALUES in the variables, $ForoNombre neither $Tabla, from the 1st php program. How I can check if variables are transmitting thru scripts? How is a better way to do this? Any help??
Thanks for all your attention and soon response!
Jose