Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (ISSET($_POST['submit'])) {
- // do what you want to do
- exit(header('location: ' . $_SERVER['PHP_SELF']));
- // header() can only be used before any html ouput including white space(s)
- }
- ?>
- <!DOCTYPE html>
- <html>
- <body>
- <form action="" method="POST">
- <!-- your inputs here -->
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement