Solved

updating tpl page dynamicaly from a php page

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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 …

827 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