[eluser]bleu[/eluser]
[quote author="CroNiX" date="1333497200"]
Code:
if ($this->input->post('name-of-checkbox') === FALSE)
{
//the checkbox was NOT submitted, meaning it wasn't checked
}
[/quote]
Should this work
Code:
if ($this->input->post('checkbox', TRUE) === true) {echo 'hi';}
where my checkbox has no value but it is checked
The above does not output hi
also
Code:
if($this->input->cookie('viewlogin', TRUE) === true){echo "hi";}
does not work
how will I check for cookies in an if condition
Is there a list as to how to check for get,post,cookie in if conditions and elsewhere