Foros del Web » Creando para Internet » HTML »

Problemas al pasar valor de variable

Estas en el tema de Problemas al pasar valor de variable en el foro de HTML en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 13/02/2007, 13:44
 
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>
  #2 (permalink)  
Antiguo 13/02/2007, 13:46
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Re: Problemas al pasar valor de variable

Hola pahs5809

Sería más fácil ayudarte si pusieras el código HTML que generas con PHP.

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

ok voy a qu itar los escapes de php

index.php
Código:
<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>
menu.php
Código:
<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>
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 05:48.