'How to remove 'GET?' string from URL when submitting a GET form
I'm working on a search feature. When user enters a keyword, they should get a list of brands.
The current URL is http://127.0.0.1:8000/brand/list
If I search for "bag", it should be http://127.0.0.1:8000/brand/list?keyword=bag
But now, it's http://127.0.0.1:8000/brand/list/GET?keyword=bag. I wanna remove the GET? thing. How can I do this?
<section id="brand-list">
<form action="GET">
<input type="text" name="keyword">
<button>Search</button>
</form>
</section>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
