Can't echo variable
<p>I'm thinking it's the smarty templates setup that is preventing me from echo'ing the $setlnk variable elsewhere on the page. Or, am i'm doing something else wrong. Is there another method I could use?</p>

<pre><code>&lt;?php
$setlnk = "&lt;img src='/files/pvtexp.php?mid=" . $set[2] . "&amp;iid=" . $set[3] . "&amp;idat=" . $set[4] . "/" . $set[5] . "&amp;sec=" . $set[6] . "'&gt;";       
</code></pre>

<p>echo $setlnk; // works<br>
    ?></p>

<pre><code>..... html code

&lt;?=$setlnk;?&gt; // doesn't work
&lt;?php echo $setlnk; ?&gt; // doesn't work
</code></pre>
