[eluser]sqwk[/eluser]
You used if($thisis) and not if(isset($thisis))—sorry, apparently posted the wrong example…
I get the following:
Code:
$field = $this->input->post('field')
// Form has been submitted, but has empty value (Set, but empty)
if ($this->input->post('field')) // FALSE -------------------------- Should be TRUE, or not?
if (isset($field)) // TRUE
if ($field) // FALSE
// Form has been submitted and has a value (Set and not empty)
if ($this->input->post('field')) // TRUE
if (isset($field)) // TRUE
if ($field) // TRUE
// Form has not been submitted (Not set) (No POST data according to profiler)
if ($this->input->post('field')) // FALSE
if (isset($field)) // TRUE --------------------------- Or rather this should be FALSE?
if ($field) // FALSE