gl**@tollnz.co.nz wrote:
does anyone know how to use smarty to generate a selection list without
PHP assigning a array?
eg. a list for selection minutes, but without php to assign a 1~60
array into smarty.
also, I want to put in id inside the <select> tag as well.
Can't help you with the first question, I think you need to use a PHP
array (but it can be one line, like: $seconds = range(1..60) or
something. Look up the range() function for the exact syntax.
You can put your own attributes in Smarty tags simply like this:
{html_options name="name" options=$options id="id"}
JP
--
Sorry, <de*****@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.