CodeIgniter - 不允许的键字符 [英] CodeIgniter - disallowed key characters
本文介绍了CodeIgniter - 不允许的键字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
CodeIgniter禁止的键字符
我有一个问题我试图提交的表单,其动态和复选框值来自数据库,只有问题是其中一个字段有一个#
,当我尝试提交该形式,它返回'不允许的关键字符
。
I have a bit of an issue with a form I'm trying to submit, its dynamic and the checkbox values come from the database, only problem is that one of the fields has a #
and when I try to submit the form, it returns 'disallowed key characters'
.
如何确定提交#
?
推荐答案
c>错误。
As per your question it seems that you are using get as a method in the form and because of that it is giving disallowed key characters
error.
为了允许字符#只需将其添加到 CONFIG 文件中的以下位置 -
To allow the character # just add it in the following in your CONFIG file -
$config['permitted_uri_chars'] = '\#';
现在,字符#将被允许在URL中。
And now the character # will be allowed in the url.
这篇关于CodeIgniter - 不允许的键字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文