Re: [SMARTY] cycle?

From: Date: Mon, 17 Jun 2002 13:37:44 +0000
Subject: Re: [SMARTY] cycle?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4902@lists.php.net to get a copy of this message
On Sun, 16 Jun 2002, Mattia Wow wrote: > Hi I have to write am HTML like this: > > ... > <input type="select" name="age"> > <select value="10">10</select> > <select value="11">11</select> > <select value="12">12</select> > <select value="13">13</select> > > [...] > > <select value="90">90</select> > > </input> > > So I have to cycle from 10 to 90, otherwise write by > hand a lot of values. So I was wandering if there was > some smarty function that can do this for me, without > using my php script. The {cycle} function doesn't seem > to be suitable. Any hints? {section name=i start=10 loop=81} <option value="{%i.index%">{%i.index%}</option> {/section} -Andrei http://www.gravitonic.com/ "Everything should be made as simple as possible, but not simpler." -- Albert Einstein

« previous php.smarty.general (#4902) next »