I need to dynamically create in PHP a drop-down list of numerical choices like so:
<select>
<option value="120">120 cm</option>
<option value="121">121 cm</option>
<option value="122">122 cm</option>
<option value="123">123 cm</option>
<option value="etc...
</select>
I would like to only specify the starting and ending numbers.
Thanks for any help.
Also:
The
range()
function can handle all of the situations you described in the comment.