[eluser]Samuurai[/eluser]
Hi everyone,
Simple question.. I have a view which has three modes, new, edit and view...
depending on the mode, it will create a "submit" button or an "update" button which then requests a function in a controller.
In the controller I need to be able to do
Code:
if(isset($this->input->post('update')))
But that doesn't work. Do I really have to type:
Code:
$state = $this->input->post('update')
if(isset($state))
Seems messy setting a variable and not using it.