I have two requests to my server. The first one gets categories and the output to URL is something like this: doomain.com?category=1. The second request is meant for sorting the data in that specific category. This request outputs something like: domain.com?sort-by=name. What I need is something like this: domain.com?category=1&sort-by=name. I cant do this at the moment because whenever I submit a form it starts a new request. I need to remember the previous request and then add a new request to it with on "&" sign. Or if there is no previous request then do it normally with "?" sign. How can I achieve such thing?