View Single Post

  #2 (permalink)  
Old 07-25-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Sending POST-data

--- 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/
Reply With Quote