Smarty Question
| From: | Shahrzad | Date: | Mon, 01 Oct 2007 11:18:32 +0000 |
| Subject: | Smarty Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-262609@lists.php.net to get a copy of this message | ||
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