Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/05/2010, 12:33
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Grabar datos desde un frame

Lo que debes hacer entonces es es indicar desde el boton del frame 1 indicar la ruta completa a donde quieres dirigirte y al final colocas un submit hacia el form que tiene los botones del frame 2. Algo así

a.php
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.     <title>Documento sin título</title>
  3. </head>
  4. <input type="button" onclick="parent.contenido.formulario.submit()" value="formulario" />
  5. </body>
  6. </html>

b.php
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.     <title>Documento sin título</title>
  3. </head>
  4. <?php
  5. if(!empty($_GET)){
  6.     var_dump($_GET);
  7. }
  8. ?>
  9. <form name="formulario" action="b.php" method="get">
  10.     <input type="text" name="texto" />
  11.     <input type="text" name="texto2" />
  12.     <input type="text" name="texto3" />
  13.     <input type="text" name="texto4" />
  14. </form>
  15. </body>
  16. </html>

c.php
Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
  2.     <title>Documento sin título</title>
  3. </head>
  4.  
  5. <frameset cols="30%, *">
  6.     <frame src="a.php" name="menu" />
  7.     <frame src="b.php" name="contenido" />
  8. </frameset>
  9.  
  10. </html>
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos