switch($_GET['variable']) { case "valor1" : ////instrucciones diversas break; case "valor2" : ///otras instrucciones break; };