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".
mod_rewrite
$_REQUEST
<input type="text" class="searchbox" id='searchid' name="query" value=""/>
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?
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.