思路:将输入的内容或选项提交给控制层,并把值赋给显示层,在显示时把默认value值输出、option默认选中。
1、控制层:
function searchinfo(){
$name = $this->input->post('name');
$mobile =trim($this->input->post('mobile'));
$workplace = trim($this->input->post('workplace'));
$begindate = trim($this->input->post('begindate'));
$comfrom =trim($this->input->post('comfrom'));
$lifecity =trim($this->input->post('lifecity'));
$data['name'] = $name;
$data['mobile'] = $mobile;
$data['workplace'] = $workplace;
$data['