I am stressing out over which payment gateway to use and trying to figure things out.
I would be taking a simple "payment form" and submitting Name, Billing Address, and Credit Card details to some Payment Gateway to have them process the payment.
On example I saw - I think Authorize.net - used cURL, and so I was like, "Hmmm... wonder what that is and why they are using and the other Payment gateway isn't?!"
The impression you initially gave suggested that you were trying to communicate from your script to another website.
Correct, I will be submitting a Payment Form from my website to the Payment Gateway's server.
If thats what you're doing then yes cURL is for you. It will let your script act like a browser and make a request to an external server. The reason I'm now asking is because you're now asking about submitting a form. You then asked is it better than using a browser.. using a browser requires a person to click the send button so now I'm not sure quite what you're trying to do.
Let's say I have a simple HTML Form that gathers Name, Billing Address, and Credit Card Info. (The page would technically be a PHP page.)
The enters their payment info, hits a "Next" button, my PHP redisplays what they just entered and asks them to confirm everything, and then they hit a final "Place Order" button.
From there, my HTML Form on my PHP Page would submit that information to the Payment gateway's server for processing.
I guess I don't know how you submit forms. From the books I've read, they always seemed to just use some PHP, but maybe that is because they were submitting the page to themselves and not outside.
I am a total newbie on this, so pardon any dumb questions!!
As I say initially it sounded like you were trying to run an automated server side request to another system but now you're asking about using a browser I'm not sure what you're really trying to do.
Hopefully my explanation above answers that.
The php manual is pretty clear but it assumes you have a technical understanding of how the internet works, what various protocols are and how to use them etc. If you're not technically minded or you're new to the php programming field then it will sound a lot like jargon. It's one of those things.. the more you use it the clearer it becomes.
I just remember POST and GET, but that was when I studied this long ago, and I have obviously forgotten a lot of what I studied, PLUS you know how academic most PHP books are!! :lol: