Solved

updating tpl page dynamicaly from a php page

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 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

11 Experts available now in Live!

Get 1:1 Help Now