Hi All,
I have a e-cart that I want to check the total $$ in the cart and limit a transaction to $25

I have an alert button that tells the user they must add more to cart or take out items. But (here's the problem) after the alert button pops up the user is still taken to the next page without removing or adding items. How do i get the sumbit button to check the total and only submit if the total is exactly $25 ? thanks.

PHP Code:
------some code here....

totalCart() {
subtotal 25.00) {
alert("Please fill cart");

some code here
<FORM onsubmit="totalCart()"METHOD="POST" ACTION="submitform.php"