RE: [PHP] post(ing) data without a form

2002-10-05 Thread Timothy J Hitchens
Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 7:03 PM To: [EMAIL PROTECTED] Subject: [PHP] post(ing) data without a form OK, I'm attempting this again: header ( 'Location: ../test/test.php' ); sendByPost(); function sendByPost() { $

[PHP] post(ing) data without a form

2002-10-05 Thread Pablo Oliva
OK, I'm attempting this again: header ( 'Location: ../test/test.php' ); sendByPost(); function sendByPost() { $host = "localhost"; $port = 80; $postdata = "field1=value1&field2=value2&field3=value3"; if ($sp = fsockopen($host, $port)) { fputs($sp,"POST /jotr/test/test.php HTTP/1.0\