Public feed #894224

Mine

public php v1 · immutable
Raw Edit
·published 2008-02-06 20:02 UTC
rendered paste body
<?phpclass Register extends Guest_Controller {	function Register() {		parent::Guest_Controller();		$this->load->helper('form');		$this->load->library('validation');	}		function index() {		// Setup some rules.....		$rules['verify'] = "trim|xss_clean|callback_verify_checkbox";			$this->validation->set_rules($rules);.....	}		function verify_checkbox($str) {		if(!isset($str)) {			$this->validation->set_message('verify_checkbox', 'zomg error!');			return false;		} else {			return true;		}	}	}?>