Advertisement
Guest User

Untitled

a guest
Mar 15th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <script type="text/javascript">
  5. $("#payment-form").submit(function(event) {
  6. // disable the submit button to prevent repeated clicks
  7. $('.submit-button').attr("disabled", "disabled");
  8. return false; // submit from callback
  9. });
  10. </script>
  11. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  12. </head>
  13. <body>
  14.  
  15. thanks for your order!<br>
  16. <br>
  17. or
  18. <br>
  19.  
  20.  
  21.  
  22. <form action="add-charge.php" id="payment-form" method="POST">
  23. <input type="hidden" size="20" value="<?php echo $_COOKIE["customer"]; ?>" name="customer" />
  24. <button type="submit" class="submit-button">Add on extra!</button>
  25. </form>
  26.  
  27.  
  28.  
  29.  
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement