I am working with authorize.net (SIM implementation) to process e-commerce orders. During this process, customer information on our site is collected via a checkout form and then sent by POST (submitting a form) directly to authorize.net where they will collect and process the customer's credit card information. What I need to do is have a step in-between where I can server-side validate and sanitize user input (amongst other things). I do currently have Javascript validation, which works great but can't be relied upon if a customer has disabled Javascript in his or her browser. Also, I know that I could send an ajax script to accomplish this, but again I do not want to rely on Javascript.
What I'd like to do is have the form POST it's data to another page on our site to be processed, which silently builds the sanitized data and (if validated) POSTS that data visibly (as if the browser submitted the form) to the external authorize.net server. Is this possible? Would you implement this differently? I'm open to ideas.
Cheers,
Ben