Somewhere in the html form you simply missed the opening quote of input name attribute(s). Example <input type=”text” name=last_name“> Just find and use the right syntax for happy coding. You can find the code for tracking disallowed characters are in system/core/input.php file function _clean_input_keys($string) { if (! preg_match(“/^[a-z0-9:_/-]+$/i”, $string)) { exit(‘Disallowed Key Characters.+’. $string)); } return…
Category: CodeIgniter
Latest updates of PHP Framework CodeIgniter
csrf exception url codeigniter
Add the following line to application/config/config.php file. $config[‘csrf_exclude_uris’] = array(‘controller 1′,’controller 2′,’controller3/method 1′,’controller3/method 2’); system/core/Security.php Modify the public function csrf_verify() function in Security.php public function csrf_verify() { // If it’s not a POST request we will set the CSRF cookie if (strtoupper($_SERVER[‘REQUEST_METHOD’]) !== ‘POST’) { return $this->csrf_set_cookie(); } // this IF statement is the…
How to Check Expired Sessions using jQuery Ajax and PHP
We can achieve using the php and ajax.The following ajax call execute in every 10 seconds to check the status of session.If it expired the user redirected to seesionout page. Ajax call in every 10 seconds var check_current_session; function CheckForCurrentSession() { var strSession=”check_current_session=true”; jQuery.ajax({ type: “GET”, url: “check_current_session.php”, data: strSession, cache: false, success: function(result){…
Codeigniter utf-8 character input data save issue
Codeigniter have utf-8 character input data save issue in some hosting servers like Etisalat. system/core/Utf8.php have function to detect illegal char in input data(post/get). In some cases utf-8 char is consider as illegal and save function will fail. For avoid data saving issue do the following in clean_string() function of Utf8.php at line 85. $str…
Codigniter arabic language issue in etisalat hosting server
Codeigniter have utf-8 character input data save issue in some hosting servers like Etisalat. system/core/Utf8.php have function to detect illegal char in input data(post/get). In some cases utf-8 char is consider as illegal and save function will fail. For avoid data saving issue do the following in clean_string() function of Utf8.php at line 85. $str…