Page 1 of 1

I need help validating data and sending it elsewhere

Posted: Fri Sep 05, 2008 1:42 pm
by DannyLove
Here's the lowdown, I've got a credit card billing form where customers enter billing information, this form's action is typically set to my payment processor. However, I get charged whether the request is accepted or denied, meaning if someone enters incorrect credit card info, I get charged. Thus, I need validation. And for validation I need the form action to be self posting. My problem is after posting the form to itself and validating the data I need to resend the POST data to the url of my payment processor. It HAS to be PHP (no javascript at all), I CANNOT change the name of the values, and I have NO control over the scripting on their side of things. Thus I need to find a way to simply resend the post data to another page. If this were an ideal world it would be something as simple as: send_post_data($url, $_POST); But, I'm pretty sure this isn't an ideal world. Any and all help is extremely appreciated! :D

-Daniel

Re: I need help validating data and sending it elsewhere

Posted: Fri Sep 05, 2008 1:50 pm
by andyhoneycutt
Take a look at cURL. It will allow you to post data after validation, https is also supported.

-Andy