I have a script, let's call it myScript.php. It's one of several scripts.
I want to pass certain things to it via the HTTP address, like this: …/myScript.php?format=xml&action=courses where xml is the format and the action is a query some courses in my database.
But I want also to be able to assign …/myScript.php?format=json&action=courses in the same script.
How can I do this?