Re: Sending POST-data

From: Date: Fri, 25 Jul 2003 16:42:56 +0000
Subject: Re: Sending POST-data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156895@lists.php.net to get a copy of this message
Simon-- Why not follow the KISS approach? Generate the GET or POST directly from the client. No PHP or server-side processing needed. --John On Friday 25 July 2003 10:09 am, Simon Fredriksson wrote: > I'm making a search-engine script for my site that > redirects users to other search engines. Point is that on > the website, there's a drop-down box with some engines > and one textfield. > > 1. User enter the search query. > 2. User selects which engine to use. > 3. User submits. > 4. PHP scripts checks which engine and redirects the user > and the query to the selected engine. > > 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? > > //Simon

« previous php.general (#156895) next »