If you could lead me in the right direction it would be greatly appreciated
for this instance I think drop down boxes work better.
Here’s what I would generally do. How would I implement this in a yii form?
I’d be using this for things like user registration, user update info.
Don’t mind the tables
Thanks
<font class="small"><b>Date of Birth</b></font></td>
<!--DOB-->
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><select name="month">
<option value="" selected>mm</option>
<?php
for ($i = 1; $i <= 12; $i++) {
?>
<option value="<?php echo $i; ?>"><?php echo $i; ?> </option>
<?php
}
?>
</select>
/
<select name="day">
<option value="" selected>dd</option>
<?php
for ($i = 1; $i <= 31; $i++) {
?>
<option value="<?php echo $i; ?>" <?php if($dayy == $i){ echo " selected"; } ?>><?php echo $i; ?> </option>
<?php
}
?>
</select>
/
<select name="year">
<option value="" selected>yyyy</option>
<?php
for ($i = 1930; $i <= 2000; $i++) {
?>
<option value="<?php echo $i; ?>" <?php if($dayy == $i){ echo " selected"; } ?>><?php echo $i; ?> </option>
<?php
}
?>
</select>
</td></tr></table>