Solved

updating tpl page dynamicaly from a php page

Posted on 2011-02-28
2
170 Views
Last Modified: 2012-05-11
I have a tpl page that up loads from this line
$t->assign('rendered_page', $t->fetch('edituser.tpl') );

 [embed=image 414459]
 [embed=image 414460]
this is a cascade menu as you can see by the first image, there is a number which references this and is stored away after selection on save
now when the data is restored i need to build the select box with the approp values. i do not have any trouble building the code to change the text box to a select box, i just do not know when and when place the update code in the php file to update the system
this is how i usally update this are in other code pages

$ret .= '|||txtzip|:|' . '<input name="srchlookzip" type="text" value="AA" class="textinput" size="30" maxlength="100" />';
echo utf8_encode($ret);

any help would be appreciated

Open in new window

dropdowntext.png
dropdowntextboth.png
0
Comment
Question by:sydneyguy
2 Comments
 
LVL 29

Accepted Solution

by:
fibo earned 500 total points
ID: 35011556
Are you using Smarty templates?
0
 

Author Closing Comment

by:sydneyguy
ID: 35161120
yes i am ....figured it out thanks for your interest though and see you next question
garry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now