Re: html_options
| From: | Andrei Zmievski | Date: | Tue, 17 Jul 2001 18:30:42 +0000 |
| Subject: | Re: html_options | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1190@lists.php.net to get a copy of this message | ||
On Tue, 17 Jul 2001, mpg@089.com wrote:
> $smarty->assign(array("array_01" =>"$var_01",
> "array_var" =>"$array_var"));
>
> template code:
> <SELECT NAME="name">
> {html_options options=$array_var}
> </SELECT>
>
> the html-output is
>
> <SELECT NAME=name>
> <option value="0">Array</option>
> </SELECT>
Don't put $array_var inside double quotes.
$smarty->assign(array("array_01" =>$var_01,
"array_var" =>$array_var));
-Andrei
"Someone clearly thinks that C is a garbage collected language"
-- Morten Welinder