[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Loop with embedded Perl


I'm stuck on this:

        <select name="year">
        <option value="">Select one</option>
        [loop list=`1981..1900+(localtime())[5]`
         ] <option value="[loop-code]">[loop-code]</option>
        [/loop]
        <option value="prior 1981">1980 or older</option>
        </select>

What I'm attempting to generate is a drop-down list with a series of
year values, 1981 to the current year.

If I can get this working, what I'd really like is ..

list=`reverse 1981..1900+(localtime())[5]`

but at present neither of these works; I get an empty list and only the
last option.
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.