Variable Variables in Smarty
| From: | lmulcahy at pacbrands dot com dot au | Date: | Wed, 11 Jun 2003 23:07:02 +0000 |
| Subject: | Variable Variables in Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9706@lists.php.net to get a copy of this message | ||
Hi there,
Does anyone know if it is possible to do variable variables in Smarty?
eg.
{foreach from=$list item=num}
<input type="text" name="textField{$num}"
value="{$smarty.post.textField{$num}}" />
{/foreach}
I know the above doesn't work, but you can see what I'm trying to do from
it.
Any ideas? Is it even possible currently?
Regards,
Lachlan