plftzk 发表于 2011-3-23 17:46:43

关于表单提交和uri_protocol的设置

提交如下表单,

<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方法提交表单了?

plftzk 发表于 2011-3-23 18:12:36

http://codeigniter.org.cn/forums/thread-692-1-1.html
页: [1]
查看完整版本: 关于表单提交和uri_protocol的设置