<!DOCTYPE html>
<html>
<title>posty redirect</title>
<body>
<?php if ($_SERVER["REQUEST_METHOD"] == "POST"): ?>
<?php
   Header("HTTP/1.1 302 Found");
   /* Header("Location:post.php?name=" . $_POST["name"] . "&email=" . $_POST["email"]); */
   Header("Location:post.php");
?>
<?php else: ?>
   Welcome <?php echo $_GET["name"]; ?><br>
   Your email address is: <?php echo $_GET["email"]; ?><br>
   Load Count: <input type="text" id="load_count" value="1" onchange="set_count(this);" />
   <br>

   RAW POST: <?php echo $HTTP_RAW_POST_DATA; ?><br>
   <form id="welcome" action="rd1.php" target="_self" method="POST">
      Name: <input id="name" type="text" name="name"><br>
      E-mail: <input id="email" type="text" name="email"><br>
      <input id="submit" type="submit" target="_self"/>
   </form>
   <script>
   window.history.replaceState('', '', window.location.href.split('?')[0]);
   </script>
<?php endif; ?>

</body>
</html>
