Re: Smarty Question
| From: | Stut | Date: | Mon, 01 Oct 2007 11:40:05 +0000 |
| Subject: | Re: Smarty Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262610@lists.php.net to get a copy of this message | ||
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} // ThanksSmarty have their own mailing lists - please use them. -Stut -- http://stut.net/