RE: [PHP] Form output

From: Date: Mon, 28 Aug 2000 18:53:11 +0000
Subject: RE: [PHP] Form output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13986@lists.php.net to get a copy of this message
On Mon, 28 Aug 2000, Krznaric Michael wrote: > > > Is it possible to submit a form to another domain, then parse the > results > > > and post them locally? > > > > Not without cooperation from the other domain. After all, the form > > doesn't get results, it just submits data. Once the user clicks submit, > > your script terminates. > > > > Matt Actually I missunderstood you on your question. You want to submit a form to another domain and get the results on your own site / domain. Like for example, submitting a search query to a search engine like Google or whatever. If that's what you want, it is possible. You can just open a socket with fsockopen() and pass your HTTP Headers like you want, to submit the search query. Rasmus often posts here his PostToHost function that is extremely useful for what you want. This way you are submiting the form thru PHP and getting the results from the other domain using your fsockopen() handler. Anyway, I hope this helps ya. Regards, Joao -- Joao Prado Maia Web Developer Kefta.com, Inc

« previous php.general (#13986) next »