[eluser]Matalina[/eluser]
[quote author="johnpeace" date="1330708813"][quote author="veledrom" date="1330708084"]
This way doesn't work.
Code:
if(! $this->input->post('submit_name')) {
// do something
}
[/quote]
This does though:
Code:
if($this->input->post('submit_button') != 'Login') {
// do something
}
[/quote]
I do it all the time The above quoted code is wrong tho there is no !
Code:
if($this->input->post('submit_name')) {
// do something
}
if $this->input->post('submit_name') has something in it it will return TRUE because it's not empty if('hi') is always true.