|
各位,
小弟
1.在VIEW中通过 <?php echo form_checkbox('checkbox'); ?> 实现的checkbox 当表单校验失败后 如何通过 set_checkbox 绑定表单里checkbox的值啊?
2.在Controller中
$sec_array = array(
'' => '- Select a Question -',
'What is the first name of your favorite uncle?' => 'What is the first name of your favorite uncle?',
'Where did you meet your spouse?' => 'Where did you meet your spouse?',
'What is your oldest cousin's name?' => 'What is your oldest cousin's name?',
);
$vars['sec'] = form_dropdown('sec', $sec_array, '0', 'id="sec");
在VIEW中通过 <?php echo $sec; ?> 实现的下拉选框 当表单校验失败后 如何通过 set_select 绑定表单里sec的值呢?
谢谢 |
|