How to pass input value form as path without using javascript?
It seems to be duplicate of this_question. But, I don’t think it is. My question is same still but, how can I acheive the same without using javascript. Let me explain it:
<form method="GET" class="srch-form" action="/search"> <input type="search" name="key" id="search" class="search-inpt" value="example"/> <button type="submit" class="srch-icon">Submit</button> </form>
What I want is localhost/search/example
, I get localhost/search?example
. I saw it without javascript in the apple official website i.e, Apple website. Check by disabling javascript, it still works in the website.
Feel free to ask.
Note:- Without javascript.