Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/02/2007, 13:44
pahs5809
 
Fecha de Ingreso: abril-2003
Ubicación: Monterrey, Nuevo Leon Mex
Mensajes: 300
Antigüedad: 21 años
Puntos: 3
Problemas al pasar valor de variable

Hola tengo un problema con iframes tengo un script index.php que contiene 2 iframes el primer iframe es un menu y el segundo es un iframe donde voy a desplegar contenido ( informacion ), pero al momento de seleccionar una opcion del menu del primer iframe no me pasa valores al segundo iframe.

coloco el codigo para ver si alguien me puede ayudar, gracias de antemano.

index.php
Código:
 
<?php
$txt="blablabla";
echo "<table width=\"760\" border=\"0\">"
   . " <tr>"
   . "   <th width=\"223\" scope=\"col\"><div align=\"left\"><img src=\"konta.jpg\" width=\"217\" height=\"44\" /></div></th>"
   . "   <th width=\"403\" align=\"center\" valign=\"bottom\" scope=\"col\"><span class=\"Estilo1\">Desarrollos a la medida </span></th>"
   . "   <th width=\"126\" scope=\"col\"><img src=\"sistemas.jpg\" width=\"111\" height=\"66\" /></th>"
   . " </tr>"
   . " <tr>"
   . "   <td colspan=\"3\"><hr /></td>"
   . " </tr>"
   . " <tr>"
   . "   <td colspan=\"3\"><table width=\"760\" border=\"0\">"
   . "     <tr>"
   . "       <th width=\"170\" valign=\"top\"  class=\"Estilo4\" scope=\"col\">"
   . "    <iframe src=\"menu.php\" name=\"menu\" id=\"menu\" width=\"100%\" height=\"100%\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">"
   . "</iframe>"
   . "</th>"
   . "  <th width=\"580\" rowspan=\"5\" valign=\"top\" bgcolor=\"#999999\" scope=\"col\" >"
   . "    <iframe src=\"b.php?txt=$txt\" target=\"contenido\" name=\"icontenido\" id=\"icontenido\" width=\"100%\" height=\"100%\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">"
   . "<fieldset>"
   . "<legend style=\" color: #ffffff; width: 300px;\">Bienvenidos a Contamax</legend>"
   . "<span class=\"Estilo8\"> <font size=\"2\" face=\"verdana\"> $txt</font></span>"
   . "</fieldset>	"
   . " </iframe>"
   . "</th>"
   . "</tr>"
   . "</table></td>"
   . "  </tr>"
   . "</table>"
   . "<p align=\"center\">&nbsp;</p>"
   . "</body>"
   . "</html>"
menu.php
Código:
echo"<table width=\"161\" border=\"0\" align=\"left\">"
  . " <tr>"
  . "   <th valign=\"top\" bgcolor=\"#7B76BC\" scope=\"col\"><span class=\"Estilo1\">Menu</span></th>"
  . " </tr>"
  . " <tr>"
  . "   <td><div align=\"center\"><span class=\"Estilo2\"><a href=\"$php_self?sw=1\">Nuestra Empresa </a></span></div></td>"
  . " </tr>"
  . " <tr>"
  . "   <td class=\"Estilo1\"><div align=\"center\" class=\"Estilo2\"><a href=\"$php_self?sw=2\">Objetivo</div></td>"
  . " </tr>"
  . " <tr>"
  . "   <td><div align=\"center\" class=\"Estilo2\"><a href=\"$php_self?sw=3\">Servicios</div></td>"
  . " </tr>"
  . " <tr>"
  . "   <td class=\"Estilo2\"><div align=\"center\"><a href=\"$php_self?sw=4\">Productos</div></td>"
  . " </tr>"
  . " <tr>"
  . "   <td class=\"Estilo2\"><div align=\"center\"><a href=\"$php_self?sw=5\">Contacto</div></td>"
  . " </tr>"
  . "</table>";
contenido.php
Código:
<fieldset>
<legend style=" color: #ffffff; width: 300px;">Bienvenidos a Contamax</legend>
<span class="Estilo8"> <font size="2" face="verdana"><?php echo  $txt; ?></font></span>
</fieldset>