cURL to secure page...
| From: | Glenn Shope | Date: | Sat, 14 Jul 2001 22:05:53 +0000 |
| Subject: | cURL to secure page... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57910@lists.php.net to get a copy of this message | ||
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
g.shope@tcmusic.net
Twin Cities Music Network
3010 Hennepin Ave. S. #109
Minneapolis, MN 55408
612-362-5995
http://www.tcmusic.net