How to get the value which user has selected in php?

<?php
if($_POST['select']){
  // Storing selected value in a variable
  $selectedValue= $_POST['holiday'];

if ($selectedValue == 'month') {
 
}
else if ($selectedValue == 'day') {
 
}
else{
  echo "Lalalala";
}
}
?>

Browse More Popular Posts

Leave a Comment