0
您好,我希望重複使用codeigniter中的表單,但問題在於更新表單已填充頁面已加載。這是一個示例表單。這裏如何在codeigniter中重新使用表單進行更新並添加
<?php
$attributes = array('class' => 'form-horizontal', 'id' => 'addPersonnel');
echo form_open($form_submission, $attributes);
?>
<input type="text" name="name" value="<?php echo set_value('name')?"> >
<input type="text" name="rank" value="<?php echo set_value('rank')?"> >
<button type="submit" class="btn btn-primary">Save</button>
<?php echo form_close()?>
我的問題就出在form_validation類的SET_VALUE()方法,因爲它會與填充如果更新形式的衝突。