<input type=”checkbox” name=”sample1” value=”1” {$sample1_checked}(这里是什么意思)>PHP:
$smarty->assign(“sample1_checked”, “checked”);
1.{$sample1_checked}这里是什么意思
2.$smarty->assign(“sample1_checked”, “checked”);这里是什么意思
$smarty->assign(“sample1_checked”, “checked”);
1.{$sample1_checked}这里是什么意思
2.$smarty->assign(“sample1_checked”, “checked”);这里是什么意思
$smarty-> assign(“sample1_checked”, “checked”);
如果不要被打上勾就不用加值了
$smarty-> assign(“sample1_checked”, “”);
$smarty是在你new smarty那个类的时候附给的变量。assign是$smarty的内部方法。这么问不是办法,自己看教程:
http://www.smarty.net/manual/en/