IRIran.netHi, I want to replace a php variable with a javascript variable inside <script type="text/javascript"> tag in a TPL file(smarty) , how can I do that? //what in my mind is , but this code is wrong /////////////////////////////////////////////////// var Country = document.search.country; {php} $me={/php} Country.value {php};{/php} // Thanks