<?php if(isset($_POST['submit'])){ if(!empty($_POST['Fruit'])) { $selected = $_POST['Fruit']; echo 'You have chosen: ' . $selected; } else { echo 'Please select the value.'; } } ?>