Friendly URL Targeted HTML Form

Possible duplicate:
What is the best way to implement a friendly multi-variable url using mod_rewrite?

I use mod_rewriteon my site for friendly URLs that work great. When using a form to add a variable to $_REQUESTit, it is called in the usual format, not friendly. My form is simple as it <input type="text" class="searchbox" id='searchid' name="query" value=""/> now directs to www.someurl.com?query="form data".

I would like it to forward a "friendly URL", something like:

www.someurl.com/query/"form data"

How can I do this in PHP?

+3
source share
1 answer

Why not put everything in a POST request?

like this

<form method='post' action='/'>
   <input type='text' name='data' value='some value' />
</form>

the result in _request will be

( 'data' = > 'some value' )

- URL.

-1

All Articles