PHP loop increments greater than 1
Hi Folks,
I am trying to get a drop down menu to populate in increments of 10 and I can't seem to get it. It must be easy but searching the net doesn't seem to get me anywhere.
here's what I have at present:
----------------------------------------------------------------
<select name="distance_miles" class="formrightcolumnnarrow" id="distance_miles">
<?php
for( $i=0; $i<=1000; $i++ )
{?>
<option value="<?php echo$i;?>"><?php echo$i;?>
<?php ;} ?>
</option>
</select>
----------------------------------------------------------------
if I do the obvious and change $i++ to $i+10 the browser hangs.
Can anyone give me a clue how to make it work for a higher increment than 1?
Cheers
Dave
