RE: [PHP-GENERAL] [PHP3] Sending POST variables
| From: | Benton Jackson | Date: | Mon, 22 May 2000 00:42:41 +0000 |
| Subject: | RE: [PHP-GENERAL] [PHP3] Sending POST variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263@lists.php.net to get a copy of this message | ||
If you are accessing the web page via script, you are probably already
sending an HTTP header (if there's an easier way, nobody's told me). The
post data is there. I think it's just lines with "variable=value".
> From: spider [mailto:noone@nowhere.com]
>
> How does one send values to a server by the POST method from
> a PHP-script? I want to send queries to search engines and recieve
> the output file from the search engine; the problem is that some
> search engines' pages have forms using the POST method and their
> scripts only take POST-variables. I know that GET variables are sent
> simply by putting a '?' after the URL and separating the variables by
> an '&'.