Smarty Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux