Advertisement
Guest User

Redirect with POST params

a guest
Jul 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.52 KB | None | 0 0
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3.     <script type="text/javascript">
  4.         function closethisasap() {
  5.             document.forms["redirectpost"].submit();
  6.         }
  7.     </script>
  8. </head>
  9. <body onload="closethisasap();">
  10. <form name="redirectpost" method="post" action="http://okkio.org/">
  11.     <?php
  12.    if ( !is_null($_GET) ) {
  13.        foreach ($_GET as $k => $v) {
  14.             echo '<input type="hidden" name="' . $k . '" value="' . $v . '"> ';
  15.         }
  16.     }
  17.     ?>
  18. </form>
  19. </body>
  20. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement