I have form fields which are checkboxes as below :
<input id="[email protected]" type="checkbox" checked="checked" value="[email protected]" style="float:left;border:2px dotted #00f" name="email[]">
<input id="[email protected]" type="checkbox" checked="checked" value="[email protected]" style="float:left;border:2px dotted #00f" name="email[]">
<input id="[email protected]" type="checkbox" checked="checked" value="[email protected]" style="float:left;border:2px dotted #00f" name="email[]">
But when in the controller I am taking a var_dump($this->input->post('email')) , it displays bool(false) .
in the controller I have this method :
public function referral_email()
{
$data = $this->input->post('email');
var_dump($data);exit;
}
How to access this array of checkboxes in my controller ?