I have a one form with more than 30 fields. I know how to submit the data in the database using CodeIgniter. I just want to know that is there any other option to submit the data without writing the whole input postcode. I mean check below code. It looks very big.
$reg_dat = array(
'surname' => $this->input->post('surname'),
'name' => $this->input->post('firstname'),
'age' => $this->input->post('age'),
'school' =>$this->input->post('school'),
'course' =>$this->input->post('course'),
'email' => $this->input->post('email')
'a' => $this->input->post('a'),
'b' => $this->input->post('b'),
'c' => $this->input->post('c'),
'd' =>$this->input->post('d'),
'e' =>$this->input->post('e'),
'f' => $this->input->post('f')
'g' => $this->input->post('g'),
'h' => $this->input->post('h'),
'i' => $this->input->post('i'),
'j' =>$this->input->post('j'),
'k' =>$this->input->post('k'),
'l' => $this->input->post('l')
and so on..
);
Is there any other option to make the above code in the small code?