Added functionality for main.php - now updates input field as selection is made on picklist.