Page 2 of 2

Re: Concatenate date question

Posted: Mon Feb 02, 2009 5:39 pm
by mikes1471
I'll give it a read now, some bedtime reading for me lol thanks again

Re: Concatenate date question

Posted: Mon Feb 02, 2009 8:51 pm
by Skoalbasher
mikes1471 wrote:I'll give it a read now, some bedtime reading for me lol thanks again

Code: Select all

 
$a = date("Y"); // current year
 
echo "<select name=\"year\" id=\"year\">    ;
while($a >= 1900)
{
     echo "<option value=\"".$a."\">$a</option>";
     echo $a--;
}
echo "</select>";