用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3216|回复: 3
收起左侧

参数传递问题

[复制链接]
发表于 2008-9-4 09:08:02 | 显示全部楼层 |阅读模式
email地址作为参数通过浏览器地址栏进行传递
http://127.0.0.1/index.php/rule/index/0001/test@sainet.com
0001和test@sainet.com为参数,提示我下面的内容
The URI you submitted has disallowed characters: test@sainet.com
不允许特殊字符作为参数传递么?那我该怎么办?
发表于 2008-9-4 09:30:22 | 显示全部楼层

session呗

test@sainet.com
1.
使用session传递,用完后注销,可以节约服务器资源
2.
使用test?sainet.com , 把“? ”改为可用的字符,然后把传递过来的值转换一下
test@sainet.com例子我就不写了
3.
http://127.0.0.1/index.php/rule/index/0001/test@sainet.com
换成http://127.0.0.1/index.php/rule/index/0001/test/sainet.com
 楼主| 发表于 2008-9-4 09:51:57 | 显示全部楼层
好,谢谢了。我去试试
发表于 2008-9-4 23:21:37 | 显示全部楼层
呵呵,修改 config.php 文件,允许 @ 不就可以了吗!

本版积分规则