Welcome Guest, Not a member yet? Register   Sign In
Simple search engine (POST or URI?)
#2

[eluser]Bramme[/eluser]
I personally prefer the second method, for the same reasons you mentioned: bookmarking, c/p...

In my app, I created a method that handled the actual search action (the post), i processed the query with url_title and then redirected to a new uri with that string attached to it. This provides a nice clean url and you have everything you need: the search words.

You can then decide if you want to search word by word (explode the string with the - ) or use the entire string to perform your search (replacing - with " ").

Mind you, there's probably some downsides to my method, but it's all I needed.


Messages In This Thread
Simple search engine (POST or URI?) - by El Forum - 08-29-2008, 04:16 PM
Simple search engine (POST or URI?) - by El Forum - 08-30-2008, 03:00 AM
Simple search engine (POST or URI?) - by El Forum - 08-30-2008, 07:05 AM
Simple search engine (POST or URI?) - by El Forum - 08-30-2008, 09:31 AM
Simple search engine (POST or URI?) - by El Forum - 08-30-2008, 11:29 AM
Simple search engine (POST or URI?) - by El Forum - 08-30-2008, 12:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB