Code Explanation First up check that a GET variable named myAnimal has been passed Next up get the resources for this variable In this case the 'Switch' statement is used see Here for more info to gather the resources for each animala type