发新话题
打印

参数传递问题

参数传递问题

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
不允许特殊字符作为参数传递么?那我该怎么办?

TOP

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
没有力量的正义是空虚的,可是没有正义的力量是暴力

TOP

好,谢谢了。我去试试

TOP

呵呵,修改 config.php 文件,允许 @ 不就可以了吗!
QQ: 49489680
MSN: zhaochang_tj AT hotmail DOT com

TOP

发新话题