How to reload page, rerun php code – PHP – SitePoint Forums


Hi, I have a website with some menu options/links.
All pages are essentially the same except for a php loop that selects different content from a json file. So I was wondering how to reload a page and just run different php code depending on the selected menu option.
Thanks for any help

It depends on what kind of links it is. If they are normal links, you can paste a code at the end of the URL and, when you display the page, provide the appropriate content for this code. If it’s a