要让下拉框中显示:“请选择”
大家怎么做的呢?有没有在模板中直接显示的呢?我是inde.php$tt[] = "请选择";
$query=...;
while($row = $db->fetch_array($query)){
$tt[] = $row[game];
}
$smarty->assign('cust_names',$tt);
$smarty->display('index.tpl');
index.tpl
<select name="customer_id" id="customer_id">
 { html_options values=$cust_ids selected=$customer_id output=$cust_names }
</select>