Guest User

Testing JS page resubmission methods

a guest
Jul 20th, 2011
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <html><body>
  2. <pre>
  3. <?php print(htmlspecialchars(print_r($_POST,1))); ?>
  4. </pre>
  5. <form method="POST" >
  6. <p><input type="text" name="text" value="<?php if(isset($_POST['text'])) print(htmlspecialchars($_POST['text'])); ?>">
  7. <p><input type="submit" value="Submit form with POST">
  8. <p><input type="button" value="window.location.href = window.location.href" onclick="window.location.href = window.location.href">
  9. <p><input type="button" value="window.location = window.location.href" onclick="window.location = window.location.href">
  10. <p><input type="button" value="reload()" onclick="window.location.reload()">
  11. <p><input type="button" value="reload(false)" onclick="window.location.reload(false)">
  12. <p><input type="button" value="reload(true)" onclick="window.location.reload(true)">
  13. </form>
  14. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment