Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start()
- if ($_POST['var'] == 1337)
- {
- $_SESSION['var'] = $_POST['var'];
- echo "You pushed the button and the value is ", $_POST['var'];
- }
- else
- {
- echo "You pushed a button and I got nothing!";
- }
- ?>
- <html>
- <body>
- <form action="" method="POST">
- <input type="hidden" name="var" value="1337">
- <input type="submit" value="GO">
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment