UPDATE:
All the methods given below doesn't
work for:
mysite.com?username=me&action=editpost
but only for:
mysite.com?action=editpost
I know how to detect if a particular GET method is in the url:
$username = $_GET['username'];
if ($username) {
// whatever
}
But how can I detect something like this:
http://www.mysite.com?username=me&action=editpost
How can I detect the "&action" above?