Solved

updating tpl page dynamicaly from a php page

Posted on 2011-02-28
2
171 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

776 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