I need a "fix" done to a script that I am using. Currently, this is how it works... you put a term into the "term" variable in the URL and pulls that terms and posts it to the page. Example -> mysite.com/index.php?term=bananas On the page, it will then say "Looking for bananas?" which it currently does. However, I need something setup so if there is nothing put in the "term" it displays a default value of "items." The problem is I have a tml file that is pulling this data and posting it to the php page. so the data is in index.tml, but the page is posted at index.php. Meanwhile, the "get" function resides in the php file itself, but I can not get it to display a default text. Here is the code: $tpl->set('thisterm', $_GET["term"]); Code (markup): If you want to take the job, hit me up with your price in a PM. I can pay paypal or epass
Why not $term = (isset($_GET['term']) && !empty($_GET['term']))?$GET['term']:'default'; $tpl->set('thisterm', $term );
Hello, We can provide you with a quote for the work feel free to checkout our online portfolio @ www.techreform.com/portfolio.php If you think we can help please contact us @ www.techreform.com/contact.php Thanks, Dominic