Re: gather reply from POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeremy Reynolds wrote:
I received this useful bit of code for storing a page into a variable instead of loading it as an include. But how can I modify this to submit some parameters to a page and collect the returned page / HTML into a variable??

Jeremy
--------------
<?php
/** DocumentB.php */

$text = file_get_contents('DocumentA.php');
echo $text;

?>

You'll probably want to use cURL for this task, although Rasmus' posttohost might also give you something useful.


http://php.net/manual/en/ref.curl.php
http://www.php-faq.com/postToHost.html

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux