check value in $_POST variable |
[eluser][email protected][/eluser]
I want to some idea to make code simplifly more than this In the controller I have a code if($this->input->post('name')!='') { $data = array( 'name' => $this->input->post('name'), 'number' => $this->session->userdata('number') ); } if($this->input->post('number')!='') { $data = array( 'name' => $this->session->userdata('name'), 'number' => $this->input->post('number'), ); } ..... when I have many index in array $_POST I must write if function more and more Can anyone tell me to make code simplifly more than that to check entry value may by interation or anything I have a loose. Thank you |
Messages In This Thread |
check value in $_POST variable - by El Forum - 10-02-2009, 04:45 AM
check value in $_POST variable - by El Forum - 10-02-2009, 05:36 AM
check value in $_POST variable - by El Forum - 10-02-2009, 08:21 PM
check value in $_POST variable - by El Forum - 10-02-2009, 08:55 PM
check value in $_POST variable - by El Forum - 10-02-2009, 10:08 PM
check value in $_POST variable - by El Forum - 10-03-2009, 12:07 AM
|