rendered paste bodyfunction index()
{
$this->load->library('validation');
$rules['accept'] = 'callback_blah';
$this->validation->set_rules($rules);
$d['input'] = $_POST ? $_POST : array();
if ($this->validation->run())
{
$data['plan'] = $this->input->post('plan');
if ($this->input->post('auto-recharge')) $data['auto-recharge'] = $this->input->post('auto-recharge');
$this->session->set_userdata($data);
//redirect('calling/step1');
}
else
{
$this->layout->view('calling/index', $d);
}
}
function blah($str)
{
$this->validation->set_message('blah', "You must accept %s the terms and conditions,");
return false;
}