我想使用输入表单传递日期。单击“确认”时,没有数据发送。代码只发送一个提交按钮的名称。
$data = array(
'name' => 'peugot',
'id' => 'peugot',
'value' => 'Dni',
'size' => '15',
'min' => '2017-01-01',
'max' => '2017-12-31',
'style'=> 'width:15%',
'type'=> 'date'
);
echo form_input($data);
echo form_submit('peugot', 'Confirm'); // I think it should submit $data but It send word "Confirm"
另一个档案
<?php
$peugot = $this->input->post('peugot');
echo $peugot; // Echo "Confirm" ?!