Re: Sending POST-data

From: Date: Fri, 25 Jul 2003 14:23:09 +0000
Subject: Re: Sending POST-data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156859@lists.php.net to get a copy of this message
--- Simon Fredriksson <simon@lan2k.org> wrote: > Now the thing is that some of these engines use POST method, > which makes it a bit harder to redirect the query. For those > who use GET I just have to use something like > header("Location: > http://somewnine.com/query=$query"); > > So, does anyone have any good solution to this problem? You have to either let the user POST (rather than redirecting from your site to the target) or send the POST request yourself and display the result to the user. If you choose the latter, search the archives for sample code to send POST requests from PHP. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#156859) next »