-Daniel
I need help validating data and sending it elsewhere
Moderator: General Moderators
I need help validating data and sending it elsewhere
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!
-Daniel
-Daniel
- andyhoneycutt
- Forum Contributor
- Posts: 468
- Joined: Wed Aug 27, 2008 10:02 am
- Location: Idaho Falls
Re: I need help validating data and sending it elsewhere
Take a look at cURL. It will allow you to post data after validation, https is also supported.
-Andy
-Andy