I'm trying to setup a coupon field for ordering where a user can input a coupon code if they have one.
I want to use PHP to check if the field is filled in and if the coupon number is valid.
Case #1. If the field is empty, but an order is being placed, the form gets sent to the shopping cart (on another server).
Case #2. If the field is correct, the price variable is discounted 10% and then the contents of the form are submitted to the shopping cart server.
In both cases I am passing the HTTP_POST_VARS back to the form for validation, but after they are validated, can I automatically send the validated form data to a different server for processing?
Is there an easier way to do this? Javascript?