Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

How to call config values via variables?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
hbilgen
Smarty n00b


Joined: 12 Sep 2003
Posts: 4

PostPosted: Tue Sep 16, 2003 11:32 am    Post subject: How to call config values via variables? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP