Advertisement
easklund

Untitled

Oct 6th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. session_start(); //to ensure you are using same session
  3. ?>
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7. <body>
  8.  
  9. <form action="location:http://localhost:8888/webbsakerhet/shop.php" method="post">
  10. <form class=none action=addToCart.php method=post>
  11. <input type="hidden"
  12. name=item
  13. value=2 />
  14. <input type=hidden value="Add To Cart" href="addToCart.php">
  15. <input type="submit"
  16. value="Win Money!" href = "location:http://localhost:8888/webbsakerhet/contact.php" />
  17.  
  18. </form>
  19.  
  20.  
  21. <?php
  22. header("location:http://localhost:8888/webbsakerhet/contact.php"); //to redirect back to "index.php" after logging out
  23. exit();
  24. ?>
  25.  
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement