参数传递问题
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
不允许特殊字符作为参数传递么?那我该怎么办?
session呗
test@sainet.com1.
使用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 好,谢谢了。我去试试 呵呵,修改 config.php 文件,允许 @ 不就可以了吗!
页:
[1]