Are they clicking an update button or the checkout button. The code looks correct in that it should only go to the checkout page when the checkout button is pressed. Do you have a sample page where I can view the problem occurring?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.