how can I make $km go up in 5s (i.e. 0,5,10,15,20) instead of 1s (1,2,3,4,5,6) ?
This is an extract from my current code:
print "<select name=\"ko_mins\">\n";
$km = 0;
while ($km <= 60) :
print "<option value=\"";
if ($km < 10) {print "0";}
print "$km\" ";
if ($ko_mins == km) {print " selected";}
print ">";
if ($km < 10) {print "0";}
print "$km";
print "</option>\n";
$km++;
endwhile;
print "</select>\n\n";
For some reason $km = $km +5; doesn't work as it just displays all the numbers between 5 and 60.