case olayı ile çözebilirsin

get ile önce ?a= yı alıp,

if ($a == "a") {
} else {
}

ile basit yoldanda çözebilirsin.