I need help validating data and sending it elsewhere

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DannyLove
Forum Newbie
Posts: 1
Joined: Fri Sep 05, 2008 1:36 pm

I need help validating data and sending it elsewhere

Post 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
User avatar
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

Post by andyhoneycutt »

Take a look at cURL. It will allow you to post data after validation, https is also supported.

-Andy
Post Reply