Here is a trickier question that is somewhat related to this thread Submitting Form changes Query String in URL...
Is there a practical way to Sort Data on a page WITHOUT putting Sort Parameters in the URL?
Here is what I am trying to accomplish...
For Articles on my website, the URL currently looks like this...
By itself, this looks a.) Simple, b.) Sleek, and c.) Easy to read, but here is the kicker...
Beneath each Article is an Article-Comments section similar to most online newspapers. And as more and more Comments get posted, the scroll and load times might increase to where they are not manageable, so I want to add Sorting and Pagination to my Article-Comments section similar to how I did in the thread above.
The problem is that I do NOT want an ugly Query String mucking up my pretty Article URL!!!
(I don't mind the Query String on my Subsection page, but for Articles, I want to keep things as simple as possible in the URL.)
So, if a user chooses to sort Article-Comments by "Rating" - or wants to navigate to Page 3 - then is there some way that when they submit the Form, that I can avoid having the Sort and Pagination parameters in the URL??
The only way I can think to handle things is by using $_SESSION, but I'm not sure if that would work?!