Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/03/2010, 11:52
Avatar de enlinea777
enlinea777
 
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 16 años
Puntos: 127
Respuesta: ¿redirect con POST?

si se puede

el ejemplo aqui: http://enlinea.webhop.net/reeenvio_con_post.php

asi:
Código PHP:
Ver original
  1. <?
  2. if($_POST[s]=="s") {
  3.     print $_POST[h]." ".$_POST[m];
  4.     exit();
  5.     }
  6.    
  7.     ?>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title>Documento sin título</title>
  12. </head>
  13.  
  14. <body>
  15. <form id="f">
  16. <input type="hidden" value="s" name="s" />
  17. <input type="text" value="Hola" name="h" />
  18. <input type="text" value="Mundo" name="m" />
  19. </form>
  20. <script language="JavaScript" type="text/javascript">
  21.  
  22.  
  23.         function redirec()
  24.         {
  25.             f.method = "post";
  26.             f.action = "reeenvio_con_post.php";
  27.             f.submit();
  28.         }
  29.  
  30. setTimeout ("redirec()", 4000);
  31. </script>
  32. </body>
  33. </html>
raro ese metodo curl pero tambien funciona