Here's my code:
echo "<select name=fromday>";
echo "<option value=0 selected>--Day--</option>";
$i = 1;
while ($i <=31)
{
echo "<option value=$i> $i</option>";
$i++;
}
echo "</select>";
How can I change this that for numbers 1-9 it should put 01,02,03 etc and not 1,2,3