http://ca.php.net/range

$form->input('name', array('type'=>'select',
'options'=>range(1,99,1)));

Remember that CakePHP is still PHP, just nicer ;-)

-Joel.

On Jun 19, 1:59 pm, nnj <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I have several form elements of the type: select from 1 to 99.  Is
> there a way to generate a select element without having to list 99
> integers? i.e. start: 1, end: 99, increment: 1
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to