Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title></title>
- </head>
- <body>
- <?php
- if(isset($_POST["status"]))
- {
- switch($_POST["status"])
- {
- case "START" : $_POST["status"] = "END";
- break;
- case "END" : $_POST["status"] = "START";
- break;
- }
- }
- else
- {
- $_POST["status"] = "START";
- }
- ?>
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
- <input type = "hidden" name = "status" value = "<?php echo $_POST["status"]; ?>" />
- <input type="submit" name="submit" value="<?php echo $_POST['status']; ?>" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement