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

新手CI登陆界面错误

[复制链接]
发表于 2012-8-28 12:56:11 | 显示全部楼层 |阅读模式
<body
<div id="container">
    <h1>Welcome to NoticeBoard!</h1>
      <div id="body">
    <form action="/index.php/user/log" method="post">
            <div id="d1">
                <label>username:&nbsp;</label>
                <input type="text" name="username" size="20" value=""/>
            </div>
            <div id="d2">
                <label>password:&nbsp;</label>
                <input type="password" name="password" size="20" value=""/>
            </div>
            <div id="d3">
                <input type="submit" name="submit" value="Submit"/>
            </div>      
    </form>  
    </div>   
    <p class="footer">2012 Tekautomotive Shanghai</p>
</div>
</body>
一点击提交提示一下错误:
Object not found!    The requested URL was not found on this server.      The link on the    referring    page seems to be wrong or outdated. Please inform the author of    that page    about the error.  
If you think this is a server error, please contactthe webmaster.
Error 404  localhost
  Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4

请问是哪一步不正确呢?路径似乎已经到了http://localhost:8080/index.php/user/log
但是为什么没显示呢。谢谢


 楼主| 发表于 2012-8-28 12:58:09 | 显示全部楼层
我用的是XAMPP的集成环境
发表于 2012-8-28 14:46:26 | 显示全部楼层
把index.php去了试试看?
 楼主| 发表于 2012-8-28 22:13:41 | 显示全部楼层
去掉了也还是这个错误
发表于 2012-8-30 17:47:20 | 显示全部楼层
控制器代码贴出来
发表于 2012-8-30 18:06:10 | 显示全部楼层
The requested URL was not found on this server. 所请求的URL没有找到,action的地址最好用ci的site_url()这个来优化下地址,问题应该就是出现在这里
 楼主| 发表于 2012-8-31 09:37:47 | 显示全部楼层
谢谢OK啦

本版积分规则