CodeIgniter Forums
function _clean_input_keys($str) I had to disable this function in CI input class. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: function _clean_input_keys($str) I had to disable this function in CI input class. (/showthread.php?tid=40090)



function _clean_input_keys($str) I had to disable this function in CI input class. - El Forum - 03-29-2011

[eluser]Unknown[/eluser]
Hi all,

I had to disable function _clean_input_keys($str) in CI input class, because I am using a select tag in my form which has name as array.

<select style="width: 100px;" name="Pro_option['Color']">
<option value="Red">Red</option></select>

This function was throwing error "Disallowed Key Characters". So I have disabled
exit('Disallowed Key Characters.');

. I wanted to know how this will effect my program. It would be very helpful if someone could explain why this function is used.

Thanks and Regards,

Rajmohan


function _clean_input_keys($str) I had to disable this function in CI input class. - El Forum - 03-30-2011

[eluser]moodh[/eluser]
pro_option[color], not pro_option['color'] Smile


function _clean_input_keys($str) I had to disable this function in CI input class. - El Forum - 03-30-2011

[eluser]Unknown[/eluser]
thank you very much.........