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
http://www.isp.com/directory/directory
// $form_method: GET or POST
// $form_data: associative array of data for GET or POST
// $ShowRequest: if set, return the request sent to server
// Request text enclosed by
// Returns: string with data received from server
function GetPost( $form_url
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: [PHP] HTML Post
> How do
4 matches
Mail list logo