<?php echo form_open_multipart('AdminHome/InsertMovieschedule'); ?>
<?php echo form_input('MovieTitle',set_value('MovieTitle')); ?>
<?php echo form_error('MovieTitle'); ?>
<?php echo form_upload('MoviePic'); ?>
<input type="submit" class="form_submit" name="submit" value="Submit" />
<?php echo form_close(); ?>
当我在控制器中打印数组时,无法将上面的表格值发布到控制器当我提交表单时显示空数组帮助我
答案 0 :(得分:0)
使用属性传递给form_open,就像那样
<?php
$attributes = array(
'method' => 'post'
);
echo form_open_multipart('AdminHome/InsertMovieschedule',$attributes);
?>
答案 1 :(得分:0)
尝试
if($_POST)
{
//Here your post values
}