RE: [PHP] Problems sending $_POST vairable to an ASP page
| From: | Jay Blanchard | Date: | Thu, 28 Aug 2008 21:21:19 +0000 |
| Subject: | RE: [PHP] Problems sending $_POST vairable to an ASP page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278923@lists.php.net to get a copy of this message | ||
[snip]
I need to send post variables to an ASP page. I have the following code
which isn't producing any errors but isn't working either:
foreach($_POST['newsletter-group'] as $key => $value){
$_POST['addressbookid'] = $value; $out = "POST /signup.ashx"; $fp =
fsockopen("dmtrk.net", 80, $errno, $errstr, 30); if (!$fp) { echo
"$errstr ($errno)<br />\n"; } else { fputs($fp, $out . "\r\n"); }
fclose($fp); }
Can anyone tell me what I am doing wrong please?
[/snip]
http://www.php.net/curl
there was just a thread on this within the past week.