--- Kris Williams <[EMAIL PROTECTED]> wrote:

> Once upon a time I used to be able to POST form data to external
> sites with ASP and an MSXML (or something) server object on IIS
> and I'm wondering if there's a similar sort of technique using
> PHP.

You can post with PHP using cURL or doing it yourself manually.
Search the archives for this, as the previous answers to this are
more complete than what I have time to explain now. Here is a quick
example of the manual approach:


> The easiest description of what I'm attempting is:  user hits PHP
> page, page submits predefined search terms to Google and the
> results are displayed.

Since Google's search uses GET, your question about POST doesn't
matter anyway. The following URL will display the search results of a
Google search on PHP:


If you are wanting to display the search results on your own page,
you should use Google's API. I believe parsing their HTML results
violates the terms of use, so you might want to read that if you do
not want to use the API.

The API can be found here:


A low-level demonstration of how the API works is given here (I plan
to improve this when I have time):


Hope that helps.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to