When trying to dynamically create a select box with values using php my data will not populate. All of the research I've done shows I've done this right. Can anyone point me to the right direction please.
<select name="month">
<?php
$months = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
for ($x=0; $x<=11; $x++) {
echo '<option value="' . $x+1 . '">' . $months[$x] . '</option>';
}
?>
</select>