I need to send form input to a secure CC payment processing form using the
POST method. Before the fields are sent, I need to insert them into a
database, and I prefer that the user not have to press a second submit.

I have been trying to use cURL to do this, but instead of sending the user
to the page, it stays at the sending page and does not seem to send the
variables. Here is the code I am using:

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,"$ccPaymentURL");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$formDataString");
curl_exec ($ch);

curl_close ($ch);

Does anyone have ideas about why this is not working?

Thanks

Glenn Shope
[EMAIL PROTECTED]
Twin Cities Music Network
3010 Hennepin Ave. S. #109
Minneapolis, MN 55408
612-362-5995
http://www.tcmusic.net 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to