if ($_REQUEST['do'] == 'test') { // Block of code #1 } if ($_REQUEST['do'] == 'test2') { // Block of code #2 }