Answers for "php get option value"

PHP
1

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.';
    }
    }
?>
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language