|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
habeebnet Smarty n00b
Joined: 23 Dec 2008 Posts: 1
|
Posted: Tue Dec 23, 2008 6:00 pm Post subject: Associative multi dimensional array |
|
|
Here my scenario
<input type="text" name="Currency['{$countryId}']" value="{$smarty.post.Currency[$countryId]}" />
But it's not getting value for {$smarty.post.Currency[$countryId]} (Ofcourse after form submission)..
Any idea?
Thanks
Habeeb |
|
Back to top |
|
Celeb Administrator
Joined: 17 Apr 2007 Posts: 1025 Location: Vienna
|
Posted: Mon Dec 29, 2008 8:27 am Post subject: |
|
|
Try this:
Code: | <input type="text" name="Currency[{$countryId}]" value="{$smarty.post.Currency.$countryId}" /> |
_________________ Darn computers always do what I tell them to instead of what I want them to do. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|