i have a form using kohana form helper.
in a select field i want to have a range of given values. The code:
<?php echo Form::select('number', range(1,$number)) ?>
where $number is a given variable. the problem is that i want to assign a ‘value’ to each select option from the range(1, $number). how can this be done in the given situation?
thanks!
You can do something like