Codeigniter form action with slashes instead of normal GETs?

Posted by Ethan on Stack Overflow See other posts from Stack Overflow or by Ethan
Published on 2010-04-12T20:52:08Z Indexed on 2010/04/12 20:52 UTC
Read the original article Hit count: 264

Filed under:
|
|

Hey, so this is one of those questions that seems obvious, and I'm probably going to feel stupid, but here goes:

I'm doing a CodeIgniter site with a search. Think of a Google type input, where you'd search for "white huskies." I have a search results page that takes a URI (MySite.com/dogs/white huskies), and takes the third part, and performs the search on that term. I'd like this to be done in the URI, and no by POST so my users can bookmark results.

The problem I'm having is how to get that search button directed to Mysite.com/dogs/WHATEVER IS IN THE INPUT. How do I get the what is in the input part into the anchor href? I know I could do this with javascript, but I've heard it's bad practice to force people to have javascript for things this small.

Thanks for the help!

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about anchor-tag