Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/03/2011, 12:55
Avatar de laratik
laratik
 
Fecha de Ingreso: mayo-2010
Ubicación: Cali
Mensajes: 317
Antigüedad: 13 años, 11 meses
Puntos: 63
Respuesta: crear formulario automático,

puedes hacer esto:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.  
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <meta http-equiv="refresh" content="0;url=http://www.mipagina.com/login2/3.php"/>
  8. <meta name="robots" content="noindex, nofollow" />
  9. <meta http-equiv="window-target" content="_top">
  10. <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
  11. <title>pagina1</title>
  12. </head>
  13. <body onload="document.getElementById('form1').submit()">
  14. <form id="form1" name="form1" method="post" action="prueba.php" onsubmit="validar()">
  15. <table width="31%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#C0CEE0">
  16. <tr>
  17. <td width="21%">usuario</td>
  18. <td width="79%"><div align="center">
  19. <input name="usu" type="text" id="usu" value="<?php echo $usuario ?>" />
  20. admi</div></td>
  21. </tr>
  22. <tr>
  23. <td>password</td>
  24. <td><div align="center">
  25. <input name="pas" type="password" id="pas" value="<?php echo $pass ?>" />
  26. 123</div></td>
  27. </tr>
  28. <tr>
  29. <td colspan="2"><div align="center">
  30. <input type="submit" name="Submit" value="enviar" />
  31. </div></td>
  32. </tr>
  33.  
  34.  
  35. </form>
  36. </body>
  37. </html>

El input hidden vendría desde la pagina que vas a llamar a 1.html, aunque pensándolo mejor podrías manejarlo usando variables de session, de esta manera seria más seguro. Aunque ya has dicho que poco de PHP.
__________________
Programar apasiona y lo que apasiona es un arte, por lo tanto programar es un arte.

Quiero karma para en mi próxima vida ser un billonario bien dotado con alas.