Re: Smarty Question

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

 



Shahrzad wrote:
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

Smarty have their own mailing lists - please use them.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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