I have a form which previously worked perfectly well which now seems to submit itself. This is part of a Stripe application and the code is
<body>
<h1>Enter Card Details</h1>
<span class="help-block">You can pay using: Mastercard, Visa, American Express, JCB, Discover, and Diners Club.</span>
<form action="purchase.php" method="POST" id="payment-form">
<!-- <div class="alert alert-info"><h4>JavaScript Required!</h4>For security purposes, JavaScript is required in order to complete an order.</div> -->
<fieldset>
<label>Card Number<br></label>
<input type="text" size="20" autocomplete="off" class="card-number input-medium">
<span class="help-block">Enter the number without spaces or hyphens<br></span>
<label>CVC<br></label>
<input type="text" size="4" autocomplete="off" class="card-cvc input-mini"><br>
<label>Expiration (MM/YYYY)<br></label>
<input type="text" size="2" class="card-expiry-month input-mini">
<span> / </span>
<input type="text" size="4" class="card-expiry-year input-mini"><br>
<button type="submit" class="btn" id="submitBtn">Submit Payment</button>
</fieldset>
</form>
I moved the script, purchase.php, that contains this button so that it appeared in a different place in the application.
What happens now is that the form appears for about ten seconds and then vanishes and it seems as though the rest of the application is working.
I must have set something that causes this form to act autonomously, but I cannot see what I've done and I don't know enough to guess at what could cause the behaviour.
Can anyone give me a clue, please ?