$selection = array($Month); $Year->build($selection); while ($Child =& $Year->fetch()) { if ($Child->isSelected()) { echo "<option value=\"" . $Child->thisMonth() . "\" selected>" . $Child->thisMonth() . "\n"; } else { echo "<option value=\"" . $Child->thisMonth() . "\">" . $Child->thisMonth() . "\n"; } } ?> </select> Day:<select name="d"> <?php $selection = array($Day); $Month->build($selection); while ($Child =& $Month->fetch()) { if ($Child->isSelected()) { echo "<option value=\"" . $Child->thisDay() . "\" selected>" . $Child->thisDay() . "\n"; } else { echo "<option value=\"" . $Child->thisDay() . "\">" . $Child->thisDay() . "\n"; } } ?> </select> Hour:<select name="h"> <?php $selection = array($Hour); $Day->build($selection); while ($Child =& $Day->fetch()) { if ($Child->isSelected()) { echo "<option value=\"" . $Child->thisHour() . "\" selected>" . $Child->thisHour() . "\n";