Link to home
Start Free TrialLog in
Avatar of wal_toor
wal_toorFlag for Netherlands

asked on

Use form variables in url

Hello all,

I have this little searchbox that does the trick:

<form action="http://www.mywebsite.com/projects/search" method="post" accept-charset="utf-8" name="searchform" id="searchform">
<input type="text" name="search_input" value="" id="search_input">
<input type="submit" name="search_button" value="Go" id="search_button" class="button button_blue">
</form>

Open in new window


I really would like to share the search url with other people (nice clean url without the get variables), so if a user searches for the word 'books' the url that should be loaded/displayd should become:

http://www.mywebsite.com/projects/search/books

Open in new window


Can this be done? And how?

Greetz,
walter
ASKER CERTIFIED SOLUTION
Avatar of James Williams
James Williams
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wal_toor

ASKER

Ah mod_rewrite.. had'nt thought of that yet. Thanks!