Looking for the solution to this I come here.
I am programming a small dynamic combobox with php, to the point.
I have my combobox 1 which would be months and the combobox 2 that would be days, the idea is that by selecting February in the > combobox 1 , automatically the combobox 2 only prints me 28 days and not 31.
<select name="Meses del año">
<option value="0">Selecione un mes del año</option>
<?php
for ($i=0; $i < sizeof($meses); $i++) {
?>
<option value="<?php echo $meses[i]; ?>">
<?php
echo $meses[$i];
?>
</option>
<?php
}
?>
</select>
<select name="Dias del mes">
<option value="0">Seleccione un dia del mes</option>
<?php
for ($x=0; $x <count($dia) ; $x++) {
?>
<option value="<?php echo $dia[$x];?>">
<?php
echo $dia[$x];
?>
</option>
<?php
}
?>
</select>
It is a small portion of the code in question, what is above is the array of months and days.