Hi,
I'm receiving data from users via a form. The data includes bank account numbers and routing numbers so that they can pay a screening fee. I need to transmit this information to a 3rd party company via a CGI they have on their secure server. I have a URL for that, which works fine when I do that step separately.
But I'm also receiving, from the same form, a bunch of data that I need to compile and email. But I only want to compile and email it if I know I've sent the data to the 3rd party company CGI successfully. If it fails, I want to do something else.
So the question is: how can I, from within a single script, send some data to another URL/CGI on a different server (https://...), wait for a response, and then continue my processing? If it can't be done in a single script, how could I achieve this with a sequence of scripts? The 3rd party company's CGI returns a short text string indicating whether the transaction was successful.
Thanks,
Scott