Search form in friendly URL?

Hey,

I’m trying to make a friendly URLs Search Engine in my php script

i want to make it like

http://www.mysite.com/search/{keywords}

i done everything except the form

i made this form


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

but when i type any keywords to search for it the URL IS

http://www.mysite.com/search/?query={keywords}

i tried this one


<form action="http://www.mysite.com/search/" method="get">
<input type="text" name="">
<input type="submit">
</form>

It becomes

http://www.mysite.com/search/?={keywords}

All I’m trying to do is to remove this annoying signs {?=}

I Hope You Got My Problem