Define your range (since most people that are 106 years old aren't exactly going to be online on forums....
$start = '1940';
Then, just loop through with a nice for() loop:
for($i=0; $start+$i<=date('Y'); $i++)
{
$years = $start+$i;
echo '<option value="'.$years.'">'.$years.'</option>';
}
Now, it's just a matter of properly wrapping it:
echo 'Date of Birth :: <select name="RegYear">';
$start = '1940';
for($i=0; $start+$i<=date('Y'); $i++)
{
$years = $start+$i;
echo '<option value="'.$years.'">'.$years.'</option>';
}
echo '</select>';
There is an easier way, but I cant' think of it....