I'm working on a website, that showcases products, and now I'm working on the query part. Basically I want to have one page, that displays a list of products as a normal query, and then on top of the page I want to have a few buttons as option to sort by name, price, and a dropdown with the taxonomies like brands and stuff. I can make a query display the information as I want, but I can´t combine all these thing I want in one page, because PHP can´t track when a button is clicked and then work with if statements and I'm not an expert, I can't move much further. Is there a way to do what I want the simple way? Wihtout java or ajax... I just want a page that loads with a standard query (I did that) and then when somone click the button Sort something the page reloads and another query is activated.
Thanks in advance, after hours of research this is my last push to get a solution.