?
Solved

updating tpl page dynamicaly from a php page

Posted on 2011-02-28
2
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
fibo earned 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

765 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