Remote cgi script function

[email protected] ("Haddad Said") Sun, 23 Jun 2002 16:43:57 +0100
Newsgroups php.general,php.lang
Message-ID <[email protected]>
Hi,

I am new to php, I would like to create a function that when called
sends text from a text box as a query to a remote cgi script ,e.g
http://www.anydomain.com/cgi-bin/script.cgi, and return the results as a
  variable so that i can echo the returned variable to an html page.

I would appreciate any help on this

Thanks