Okay so i have created a switch statement and want to integrate a text box so when the user enters a month and hits submit a message will display for each month. what am i missing i think i am close to getting this complete:
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
Enter a month: <input type = "text" name ="month">
<input type = "submit">
</form>
<?php
switch($month){
case december:
echo " its a chilly winter";
break;
case january:
echo " its a chilly winter";
break;
case febraury:
echo " its a chilly winter";
break;
case march:
echo " its a beautiful spring";
break;
case april:
echo " its a beautiful spring";
break;
case may:
echo " its a beautiful spring";
break;
case june:
echo " the heat of summer";
break;
case july:
echo " the heat of summer";
break;
case august:
echo " the heat of summer";
break;
default:
echo "please enter a month.";
}
?>