On return, just cut out the part you don't need; PHP's string functions take care of
this
nicely
- Original Message -
From: "Drew Kime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:22 PM
Subject: Re: [PHP] HTML Post
I used a similar script and had the same problem I'm having with yours.
The first few lines returned in the '$response' variable are the
headers from the POST operation. When I get to the 'print' command at
the end I get the headers generated by my server, then the headers
retrieved from the
cho 'Could not connect to: '.htmlentities($url['host']).'';
echo 'Error #'.$err_num.': '.$err_msg;
exit;
}
}
//EXAMPLE
$mydata['q'] = 'php';
$mydata['start'] = '10';
$qq = GetPost("http://www.goo
Open a socket connection, formulate your data, post it to the host. Or do a
searchfor the PostToHost() function. Good luck.
-Kevin
- Original Message -
From: "Wei Weng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 3:44 PM
Subject: [
How do you do a HTML post in php?
Thanks
--
Wei Weng
Network Software Engineer
KenCast Inc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo