Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Form method GET in SEO-Friendly URL schema
#1

[eluser]sirtea[/eluser]
Hello.

I'm trying to create a search page with codeigniter. Something like:

Quote:<form action="http://whatever.com/books/search" method="get">
<input type="text" name="query" />
<input type="submit" />
</form>

I expect to generate a URL like http://whatever.com/books/search/hamlet
and every user could use this kind of URL directly.

However, http protocol generates http://whatever.com/books/search?query=hamlet
I have read a lot of times about how to accept normal GET parameters, but I don't want this.
I want the HTML to pass directly the codeigniter-style URL.

I am looking at two possible solutions:
a) javascript onclick(), intercepting submit button and redirecting according to query
(concatenate the target URL on-the-fly/submit)
b) POSTing parameters to a fake method, who redirects at the concatenation of parameters

¿Any other idea?

Thanks


Messages In This Thread
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 08-12-2010, 01:20 PM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 08-12-2010, 02:12 PM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 08-13-2010, 02:17 AM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 08-13-2010, 02:36 AM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 08-17-2010, 04:20 AM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 03-14-2011, 08:29 AM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 04-07-2011, 02:12 PM
[SOLVED] Form method GET in SEO-Friendly URL schema - by El Forum - 01-25-2013, 03:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB