EbrahemSamer
4 months ago
291
3
Laravel

How to prevent button name and value from showing up in the url?

Posted 4 months ago by EbrahemSamer

I wanna make search in my blog and I've already made a from and it has get method to show in the url but the search button appears in the url as a parameter like (?q=hello&search_btn = search).

Question is : is that okay to let it or should I hidden it and how to do that?

and is there is a better way to search in laravel except ( algolia ) because it simple search.?

the form

                <input type="text" name="q" class="searchText" placeholder="what do you want to read..." required>

              </div>
                <input type="submit" name="searchbtn" class="main-button" value="Search Now">
             </form>

Please sign in or create an account to participate in this conversation.