I'm trying to figure out how to handle this situation. I have the following line for logging in a user however with this situation the remember post parameter might not be set upon form submission so i'd still like it to send 0 as its value with this function.
if ($this->kowauth->login($this->input->post('username'), $this->input->post('password'),
$this->input->post('remember'))) {}
Here's the form element:
<?php
if(isset($_COOKIE['xtrcook']))
{
echo form_label((form_checkbox('remember', '1', TRUE)) . 'Remember Me!', 'remember');
}
else
{
echo form_label((form_checkbox('remember', '1', FALSE)) . 'Remember Me!', 'remember');
}
?>
Although drew010 had a good answer its not the route I want to go with this so I'm asking if anyone else have any ideas?