Advertisement
michaelyuen

Untitled

May 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2.     if (ISSET($_POST['submit'])) {
  3.         // do what you want to do
  4.         exit(header('location: ' . $_SERVER['PHP_SELF']));
  5.         // header() can only be used before any html ouput including white space(s)
  6.     }
  7. ?>
  8. <!DOCTYPE html>
  9. <html>
  10. <body>
  11.     <form action="" method="POST">
  12.         <!-- your inputs here -->
  13.     </form>
  14. </body>
  15. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement