My page has a form at the top, and extracts data from my database. The form has several drop down options and is there so users can filter and sort the data for various things. However, more often that not, a user wouldn’t use many in conjunction with one another, so most of the queries are left blank.
So upon submitting the form, they might have this url:
example.com/index.php?filter1=&filter2=&filter3=&filter4=&filter5=&filter6=10
What I’d like to do is remove all the blank queries from the URL that they are sent to so that it’s much cleaner:
example.com/index.php?filter6=10
Thanks