Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- $("#payment-form").submit(function(event) {
- // disable the submit button to prevent repeated clicks
- $('.submit-button').attr("disabled", "disabled");
- return false; // submit from callback
- });
- </script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
- </head>
- <body>
- thanks for your order!<br>
- <br>
- or
- <br>
- <form action="add-charge.php" id="payment-form" method="POST">
- <input type="hidden" size="20" value="<?php echo $_COOKIE["customer"]; ?>" name="customer" />
- <button type="submit" class="submit-button">Add on extra!</button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement