Foros del Web » Programando para Internet » PHP »

Problema al pasar variables en frames

Estas en el tema de Problema al pasar variables en frames en el foro de PHP en Foros del Web. Hola : Mi problema es el siguiente tengo un script donde uso 3 iframes en el primer iframe hago una seleccion de una base de ...
  #1 (permalink)  
Antiguo 22/11/2006, 14:29
 
Fecha de Ingreso: abril-2003
Ubicación: Monterrey, Nuevo Leon Mex
Mensajes: 300
Antigüedad: 21 años
Puntos: 3
Problema al pasar variables en frames

Hola :
Mi problema es el siguiente tengo un script donde uso 3 iframes
en el primer iframe hago una seleccion de una base de datos donde en el segundo iframe de esa variable que seleccione necesito descargar la informacion de la opcion seleccionada del primer iframe, el problema que tengo es que no pasa la variable del primer iframe al segundo o no se si hay que refrescar el script principal, pongo codigo:

<code index.php>

<style type="text/css">
  #2 (permalink)  
Antiguo 22/11/2006, 14:32
 
Fecha de Ingreso: abril-2003
Ubicación: Monterrey, Nuevo Leon Mex
Mensajes: 300
Antigüedad: 21 años
Puntos: 3
primer script

Código:
<style type="text/css">
<!--
.Estilo1 {color: #3399CC}
-->
</style>
<?php

echo"<table width=\"750\" border=\"0\" align=\"center\" cellspacing=\"0\">"
  . " <tr>"
  . "   <th scope=\"col\"><img src=\"images/sertur.jpg\"  /></th></tr>"

  . "     <td align =\"center\" valign=\"top\"  ><iframe src=\"progs/botones.php?des=$des\" name=\"botones\" id=\"botones\" width=\"100%\" height=\"29\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></th></td>";
  $des = $_GET['des'];
  
  echo "<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" >"
  . "   <tr>"
  . "     <td width=\"150\" height=\"1275\" rowspan=\"2\" valign=\"top\"><iframe src=\"progs/pubizq.php\" name=\"pubizq\" id=\"pubizq\" width=\"100%\"  scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></td>"
  . "    "
  . "   <td width=\"470\" align=\"center\" valign=\"top\"><iframe src=\"progs/info.php?des=$des\" name=\"contenido\" id=\"contenido\" width=\"100%\"  scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">botonesx</iframe></td>"
  . "     <td width=\"150\" height=\"1275\" rowspan=\"2\" align=\"right\" valign=\"top\"><iframe src=\"progs/pubder.php\" name=\"pubder\" id=\"pubder\" width=\"100%\"  align=\"right\"scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></td>"
  . "   <tr>"
  . " </table>"
 ."";
?>
segundo script botones.php

Código:
<style type="text/css">
<!--
.Estilo1 {

	color: #FFFFFF;
	font-family: Geneva;
	font-size: 14px;
}
-->
</style>
<?php
require("../includes/conectar.php");
echo "<table width=\"50\" border=\"0\" cellspacing=\"0\">"
   ."  <tr>";
$resdes=mysql_query("SELECT * FROM destinos where cve_des <> '$des'",$Conexion);
while($rowdes=mysql_fetch_array($resdes))
 {
   $des = $rowdes["cve_des"]; 
   $dsc = $rowdes["dsc_des"]; 
  echo "    <th width=\"400\" bgcolor=\"#C8000A\" scope=\"col\"><a href=\"$php_self?des=$_POST[$des]&swdes=1\"><span class=\"Estilo1\">&nbsp;$dsc&nbsp;</th>"
  ."<th bgcolor=\"#FFFFFF\"width=\"5\">&nbsp;</th>";
} 
if($swdes == 1 and swcat == 0)
 {  
   $rescat=mysql_query("SELECT * FROM catego where des_cat = '$des'",$Conexion);
   while($rowcat=mysql_fetch_array($rescat))
    {
      $cat     = $rowcat["cve_cat"]; 
      $descatc = $rowcat["dsc_cat"]; 
	  $botcat  = $rowcat["boton_cat"]; 
      echo "    <th bgcolor=\"#C8000A\" scope=\"col\"><a href=\"$php_self?des=$des&cat=$cat&swdes=$swdes\"><span class=\"Estilo1\">&nbsp;$descatc&nbsp;</th>"
	    ."<th bgcolor=\"#FFFFFF\"width=\"5\">&nbsp;</th>";
;
    } 
}
if($swdes == 1 )
 {  
   $resscat=mysql_query("SELECT * FROM subcatego where des_scat = '$des' and cat_scat = '$cat'",$Conexion);
   while($rowscat=mysql_fetch_array($resscat))
    {
      $scat     = $rowscat["cve_scat"]; 
      $desscatc = $rowscat["dsc_scat"]; 
	  $botscat  = $rowscat["foto_scat"]; 
      echo "    <th scope=\"col\"><a href=\"$php_self?des=$des&cat=$cat\"><img src=\"../images/	agregar-on.jpg\"  /></th>";
    } 
}
  echo "  </tr>"
   ."</table>";
?>
tercer script info.php
[code]
<?php
require("../includes/conectar.php");
echo "<table width=\"110\" border=\"0\" cellspacing=\"0\">"
." <tr>";
$x="SELECT * FROM destinos where cve_des = '$des'"; echo $x;
$resdes=mysql_query("SELECT * FROM destinos where cve_des = '$des'",$Conexion);
while($rowdes=mysql_fetch_array($resdes))
{
$img = $rowdes["img_des"];
echo " <th align=\"center\"scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
echo " <th scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
echo " <th scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
}
echo " </tr>"
."</table>";
?>

Agadecere la ayuda que me pudieran brindar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:39.