Welcome Guest, Not a member yet? Register   Sign In
Input hidden
#18

[eluser]ibnclaudius[/eluser]
Try this, and show me what you got:

Code:
function createmeeting()
{
  // Form Validation
  $this->form_validation->set_rules('Date', 'Date', 'required');
  $this->form_validation->set_rules('Remarks', 'Remarks', 'required');
  $this->form_validation->set_rules('Cuttings', 'Cuttings', 'required');
  
  if ($this->form_validation->run() == FALSE)
  {
    $data = array(
       //'CustomerID'  => $meeting['CustomerID'],
    'CustomerID'  => $this->input->post('CustomerID'),
    'AgencyID'    => $this->input->post('AgencyID'),
    'MeetingDate' => $this->input->post('MeetingDate'),
    'Remarks'     => $this->input->post('Remarks'),
    'Cuttings'    => $this->input->post('Cuttings'),
    'DateEntered' => now()
  );

    var_dump($data);
  }
  else {
   echo 'Something wasnt right';
  }
}


Messages In This Thread
Input hidden - by El Forum - 01-31-2012, 02:18 PM
Input hidden - by El Forum - 01-31-2012, 02:32 PM
Input hidden - by El Forum - 01-31-2012, 02:35 PM
Input hidden - by El Forum - 01-31-2012, 02:36 PM
Input hidden - by El Forum - 01-31-2012, 02:46 PM
Input hidden - by El Forum - 01-31-2012, 02:49 PM
Input hidden - by El Forum - 01-31-2012, 02:50 PM
Input hidden - by El Forum - 01-31-2012, 02:53 PM
Input hidden - by El Forum - 01-31-2012, 02:53 PM
Input hidden - by El Forum - 01-31-2012, 02:55 PM
Input hidden - by El Forum - 01-31-2012, 02:56 PM
Input hidden - by El Forum - 01-31-2012, 02:59 PM
Input hidden - by El Forum - 01-31-2012, 03:00 PM
Input hidden - by El Forum - 01-31-2012, 03:03 PM
Input hidden - by El Forum - 01-31-2012, 03:08 PM
Input hidden - by El Forum - 01-31-2012, 03:13 PM
Input hidden - by El Forum - 01-31-2012, 03:16 PM
Input hidden - by El Forum - 01-31-2012, 03:19 PM
Input hidden - by El Forum - 01-31-2012, 03:32 PM
Input hidden - by El Forum - 01-31-2012, 03:46 PM
Input hidden - by El Forum - 01-31-2012, 03:49 PM
Input hidden - by El Forum - 01-31-2012, 03:51 PM
Input hidden - by El Forum - 01-31-2012, 03:52 PM
Input hidden - by El Forum - 01-31-2012, 03:58 PM
Input hidden - by El Forum - 01-31-2012, 04:03 PM
Input hidden - by El Forum - 01-31-2012, 04:06 PM
Input hidden - by El Forum - 01-31-2012, 04:24 PM
Input hidden - by El Forum - 02-01-2012, 02:15 AM
Input hidden - by El Forum - 02-01-2012, 02:18 AM
Input hidden - by El Forum - 02-01-2012, 02:46 AM
Input hidden - by El Forum - 02-01-2012, 02:51 AM
Input hidden - by El Forum - 02-01-2012, 02:58 AM
Input hidden - by El Forum - 02-01-2012, 03:02 AM
Input hidden - by El Forum - 02-01-2012, 03:10 AM
Input hidden - by El Forum - 02-01-2012, 04:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB