Avatar of wal_toor
wal_toor
Flag 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
JavaScriptHTMLPHP

Avatar of undefined
Last Comment
wal_toor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
James Williams

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
wal_toor

ASKER
Ah mod_rewrite.. had'nt thought of that yet. Thanks!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck