html_options
| From: | mpg at 089 dot com | Date: | Tue, 17 Jul 2001 17:34:16 +0000 |
| Subject: | html_options | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1188@lists.php.net to get a copy of this message | ||
hi,
i am using html_options and get "Array" as output and not the
values of the array.
php-code:
$array_var= array("01"=>"01",
"02"=>"02");
$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>
the output should be
<SELECT NAME=name>
<option value="01">01</option>
<option value="02">02</option>
</SELECT>
i do not see my/the error.
gerhard