• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a fix for the CSRF "The action you have requested is not allowed" issue?

#6
[eluser]sandeep49[/eluser]
If we have form fields in array :
For ex.: <input name='employee_name[]' />
Now I want to validate this field by form validation:
$this->form_validation->set_rules('employee_name[]', 'Employee Name', 'trim|required|xss_clean');

This code will not work:

$CI =& get_instance();
if ( ! isset($CI->security))


After replacing with this code...


$CI =& get_instance();
if (isset($CI->security))


Now everything is working fine....:lol:


Messages In This Thread
Is there a fix for the CSRF "The action you have requested is not allowed" issue? - by El Forum - 10-09-2013, 11:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.