Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/12/2014, 14:17
Avatar de asassa
asassa
 
Fecha de Ingreso: julio-2008
Ubicación: En el DF ectuoso
Mensajes: 240
Antigüedad: 16 años, 6 meses
Puntos: 0
Pregunta pasar variables php por frames

Hola necesito tengo estos archivos.
c.php
Código PHP:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<
html>
<
head>
<
title>Alyssa</title>
<
link rel="shortcut icon" href="http:../../../../favicon/logo.ico" />
</
head>
 
 
 
 
<
frameset rows="40,*,30"  >
  <
frame name="topNav" src="menu.php" noresize>
   
<
frameset rows="*" cols="338,38%" framespacing="0" frameborder="0" border="0">
        <
frame name="menu" src="index.php"  marginheight="0" marginwidth="0"  >
        <
frame name="ingreso" src="descripcion.php" marginheight="0" marginwidth="0"  noresize>
      
    
</
frameset>

  <
frame name="footer" src="abajo.php">

 

</
frameset><noframes></noframes>
</
html
index.php
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <link rel="STYLESHEET" type="text/css" href="css/maestro_ing_campo.css"></link>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Paginar Resultados</title>
<script type="text/javascript" src="ajax.js"></script>

</head>

<body>

<table width="279" border="1px" id="ttable">
<tr>
 <td width="168">Campo</td>
 <td width="80">Descripción</td>
 
</tr>
</table>
<div id="contenido">
<?php include('paginador.php')?>
</div>
</div>
</body>
</html>
y detalle .php
Código PHP:
<?php 
$v1
=$_GET['id'];

error_reporting(E_ALL & ~E_DEPRECATED);
require(
'conexion.php');

$Resultado=mysql_query("SELECT * FROM ing_campo WHERE ID_ASEGURADORA = $v1",$con);
if(
$MostrarFila=mysql_fetch_array($Resultado)){
}
?>
<!DOCTYPE html>
<html>
<head>
    <link rel="STYLESHEET" type="text/css" href="css/detalle_ing_campo.css"></link>

</head>

<body>
<table class="detalle_ing_campo">
    <thead>
    <tr>
        <th colspan="2">Catalogo de Campos Clave</th>
    </tr>
    </thead>
    <tr>
        <td>Campo</td>
        <td><?php echo "<a href="."abajo.php?id=".$MostrarFila['ID_ASEGURADORA']."&"."id2=".$MostrarFila['ID_CAMPO']. " a>".$MostrarFila['NOM_CAMPO']?></td>
    </tr>        
    <tr>
        <td>Etiqueta</td>         
        <td><?php echo $MostrarFila['TXT_ETIQUETA']?></td>
    </tr>
    <tr>
        <td>Descripci&oacute;n</td>         
        <td><?php echo $MostrarFila['TXT_DESCRIPCION']?></td>
    </tr>    

</table>

    <!-- end .content --></div>
    
</body>
</html>
El problema es que quiero pasar una variable por url, pero dentro de un frame principal "c.php". Cuando inserto las paginas en los frames, no pasa la variable al otro frame sino que lo hace todo en uno solo frame. Y lo que necesito es que se cargue el segundo en cuanto mande la veriable del primer frame.

Gracias espero me puedan ayudar