|
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 |
hbilgen Smarty n00b
Joined: 12 Sep 2003 Posts: 4
|
Posted: Tue Sep 16, 2003 11:32 am Post subject: How to call config values via variables? |
|
|
Hi,
The subject may be wrong but I want to use a contry.conf file which contains country codes as below:
_c1=Afghanistan
.
.
And I created a template which contains a select object to select the country a below:
<select class="formtext" style="WIDTH: 187px" name="country">
<option value="" selected>Please Select</option>
<option value="_c1">Afghanistan</option>
Last of all, I want to preview the form before submission. For that another template file is used.
Here the problem raises. How will I use "country" variable to get value from country.conf file to display. I mean, I will get value "_c1" for "country" variable from form template. And I will parse it into preview template but it must be turned to "Afghanistan" while display.
I hope I made myself clear...
Thanks anyway |
|
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
|