Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2012, 17:02
Avatar de JaimeMSE
JaimeMSE
 
Fecha de Ingreso: diciembre-2010
Ubicación: Isla Cristina (Huelva)
Mensajes: 164
Antigüedad: 13 años, 5 meses
Puntos: 7
Respuesta: problema para pasar variables _POST a PHP 5X

Prueba así:

Código PHP:
Ver original
  1. <form METHOD="GET" ACTION="intfrintranet_new.php" name="flogin">
  2. <table border="0" cellpadding="0" cellspacing="0">
  3. <tr>
  4. <td align="center">Usuario</td>
  5. <td align="center" valign="top">Contrasena</td>
  6. <td></td>
  7. </tr>
  8. <tr>
  9. <td align="center"><input type="text" name="codf" size="6"> </td>
  10. <td align="center"><input type="password" name="pw" size="6"> </td>
  11. <td valign="top"><input type="submit" value="Entrar" name="login"></td>
  12. </tr>
  13. </table>
  14. </form>



intfrintranet_new.php:
Código PHP:
Ver original
  1. <?php
  2. $codf = $_GET["codf"];
  3. $pw = $_GET["pw"];
  4. ?>
  5. <html><head></head>
  6. <frameset framespacing="0" border="false" frameborder="0" rows="2,*">
  7. <frame name="encabezado" scrolling="no" noresize target="principal" src="cabecerax.htm">
  8. <frame name="principal" src="<?php echo $_SERVER['PHP_SELF']. "?buscar=ok&codf=".$codf."&pw=".$pw; ?>" scrolling="auto">
  9. <noframes>
  10. <body>
  11. <p>Esta página usa marcos, pero su explorador no los admite.</p>
  12. </body>
  13. </noframes>
  14. </frameset>
  15. </html>
__________________
@JaimeMSE - ¡Sígueme!