Hi, I have been creating a website for a while now, and have been creating sections of my site on one page: for example:
there is a forum section. so I have one php page named forums. I have made several functions on the php page that do certain things according to variables sent to the page by links. Let's say the user want's to reply to a post. He clicks reply, the link is like this: forum.php?action=reply
There are several if statements which check the value of $_GET['action'] and do various things. in the above case it would execute the reply function allowing the user to reply.
I hope this is clear. My question is: is this good practice? it seems to keep everything well organized for me. Is anyone else doing this? If it is not a good idea then why not? Thanks for any advice!