Update result.php

Added functionality to call correct function when dropdown item is clicked.