application/core/core.base.php
// to check multiple isset conditions over post
to check multiple isset conditions over post
to check multiple isset conditions over post
static function postCheck($i)
	{
		if(is_array($i))
		{
			$err = 0;
			foreach ($i as $key) 
			{ 
				if(!isset($_POST[$key]))
					$err=1;
			}
			if($err)
				return 0; 
			else
				return 1; 
		}
	}
static function postCheck ( $ i ) { if ( is_array ( $ i ) ) { $ err = 0 ; foreach ( $ i as $ key ) { if ( ! isset ( $ _POST [ $ key ] ) ) $ err = 1 ; } if ( $ err ) return 0 ; else return 1 ; } }
to check multiple isset conditions over post
to check multiple isset conditions over post
// if it is an array // then loop through all elements  // if any unknown post index found, set error =1; // if there is error (error = 1) // 0 means postCheck Failed // 1 means postCheck is successful