I have a form in HTML to apply a Discount Coupon to a current shopping cart.I would like the user to just click on APPLY (after entering the coupon code) and then without refreshing the page, to have some PHP code run so it computes the corresponding discount.Here is my form:\[code\]<form action=""> <input type="text" name="couponCode"> <input type="submit" value="http://stackoverflow.com/questions/15822564/Apply"></form>\[/code\]PHP to be run:\[code\]if (isset($_REQUEST['couponCode']) && $_REQUEST['couponCode']!='') { $couponCode = $_REQUEST['couponCode']; if ($couponCode == "TEST1") { $discount=0.2; }}\[/code\]How would this be done using javascript?