Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start(); //to ensure you are using same session
- ?>
- <!DOCTYPE html>
- <html>
- <body>
- <form action="location:http://localhost:8888/webbsakerhet/shop.php" method="post">
- <form class=none action=addToCart.php method=post>
- <input type="hidden"
- name=item
- value=2 />
- <input type=hidden value="Add To Cart" href="addToCart.php">
- <input type="submit"
- value="Win Money!" href = "location:http://localhost:8888/webbsakerhet/contact.php" />
- </form>
- <?php
- header("location:http://localhost:8888/webbsakerhet/contact.php"); //to redirect back to "index.php" after logging out
- exit();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement