Maybe I'm doing something wrong right from the beginning, and if so I'll work on that too...
I have a menu item that as part of the URL passes an Event ID#. In my specific case it takes the user to an information page for that Event. Then there is a button that lets them sign up for the Event. Click and they're signed up for the Event and taken back to the same information page which now says they're signed up and lets them see a few extra things.
The first time they hit the page I use a $_GET to figure out the Event ID# which is then passed back to the page if they click the sign up button as a hidden input field. But this time I need to use $_POST to figure out the Event ID#. So the code in my query has a boolean part which looks like
SELECT stuff FROM ... WHERE eventID = ($_GET["ID"] ? $_GET["ID"] : $_POST["ID"])
It works, but it just feels like it can be done better...