Home Of The Lowcost Credit Card Processing For
 Internet Mail Order And Retail Independent Merchants.
 Discount RealTime Gateway And Equipment Prices.

THE JAVASCRIPT SOURCE

RULES:

  1. This JavaScript may not be used if you are using a Split Form. (It is built into the Split Form already.)

  2. The following JavaScript must be copied completely and must exist within your order form between the HTML tags of <HEAD> and </HEAD>.

  3. Find the following line in your HTML order form:
    <form method="post" action="https://secure.paymentclearing.com/cgi-bin/rc/ord.cgi">

  4. Change it to:
    <form method="post" action="https://secure.paymentclearing.com/cgi-bin/rc/ord.cgi" onsubmit="return onlyonce()">

THE CODE:

<!-----START COPYING JAVASCRIPT HERE----->

<script language="javascript">

<!--
numberoftimes = 0;

function onlyonce() {
numberoftimes += 1;
if (numberoftimes > 1) {

        var themessage = "Please be patient. You have already submitted this form. Pressing submit multiple times will result in your account being billed multiple times. You will receive a response momentarily.";
        if (numberoftimes == 3) {
                themessage = "DO NOT PRESS SUBMIT MULTIPLE TIMES!!! YOUR ACCOUNT WILL BE BILLED EACH TIME YOU PRESS SUBMIT!!! Processing may take up to one minute.";
        }
         alert(themessage);
         return false;
}
else
{
         return true;
}

}

// -->

</script>

<!-----END COPYING JAVASCRIPT HERE----->


Link Back To Toolkit