how to get the option value in select tag name in php code example
Example: php get option value
<?php
if(isset($_POST['submit'])){
if(!empty($_POST['Fruit'])) {
$selected = $_POST['Fruit'];
echo 'You have chosen: ' . $selected;
} else {
echo 'Please select the value.';
}
}
?>