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

[HELP] 关于表单提交和uri_protocol的设置

[复制链接]
发表于 2011-3-23 17:46:43 | 显示全部楼层 |阅读模式
提交如下表单,
HTML复制代码
 
<form action="http://localhost/ci/index.php/welcome/index" method="get">
<input name="test" type="text" />
<input type="submit" value="确定" />
</form>
 
复制代码

如果设置 $config['uri_protocol']        = "AUTO"; 时url路径变成 "http://localhost/ci/index.php/welcome/index?test=abc"  的形式,出现页面找不到的提示。

已经知道把 $config['uri_protocol'] = 'PATH_INFO'; 就可以了。现在想知道,如果$config['uri_protocol'] = 'AUTO'; 时,是不是就不可以用get方法提交表单了?
 楼主| 发表于 2011-3-23 18:12:36 | 显示全部楼层

本版积分规则