post the value of selected checkbox from php form to view in codeigniter framework
php form
<input type='checkbox' value="<?php echo $row_id ?>">
<input type='hidden' name='asap[]' value="1 " >
<input type='hidden' name='asap[]' value="2 " >
<input type='hidden' name='asap[]' value="3 " >
controller
$asap=> $this->input->post('asap')
view
echo $asap;
Aucun commentaire:
Enregistrer un commentaire