Re: [SMARTY] simple for loop
| From: | Jason Sweat | Date: | Sat, 10 May 2003 14:50:25 +0000 |
| Subject: | Re: [SMARTY] simple for loop | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9517@lists.php.net to get a copy of this message | ||
From: "Gerard L Petersen" <gerard@gamelink.co.za>
> I am trying to get smarty to loop without using an array so i end up
with
> something like this...
>
> <input name="text1">
> <input name="text2">
> <input name="text3">
try:
{section name=i loop=5}
<input type="text" name="text{$smarty.section.i.index}">
{/section}