[Solved] How to make a variable retain its value after reloading, in PHP?
There’s two ways to do this: (1) a session, and (2) a form. A session is used to store values between page requests – it uses a cookie to identify your browser, which PHP manages for you. Your category could be set into a variable, and then re-read at page load. The other approach is … Read more