日期:2014-05-17  浏览次数:20460 次

再次请教pHP老手,


这样的一个问题,大概是怎样造成的呢,
下面是网页的js代码,





JScript code


<form name="UsersForm" id="UsersForm" onSubmit="return validateForm(this.id, 'http://127.0.0.1/qd2/index.php/home/validateLoginForm')" action="http://127.0.0.1/qd2/index.php/home/login" method="POST">
  <table class="formTable">
    <tr>
  <th><label for="login_email">Email</label></th>
  <td><input size="40" type="text" name="login[email]" id="login_email" /></td>
</tr>
<tr>
  <th><label for="login_password">Password</label></th>
  <td><input size="40" type="password" name="login[password]" id="login_password" /></td>
</tr>
    <tr>
      <td colspan="2">
        <table>
            <tr>
              <td><input type="submit" value="Login" /></td>
              <td><div id="formLoadingContainer"></div></td>
            </tr>
          </table>
      </td>
    </tr>
    <tr>
      <td colspan="2"><a href="#" onclick="yuiShowPanel('Restore Password','http://127.0.0.1/qd2/index.php/home/restorePassword'); return false;">Password forgotten?</a></td>
    </tr>
  </table>
  <input type="hidden" name="http_referer" id="http_referer" value="http://127.0.0.1/qd2/index.php" /></form>

        </div>
                        
      </div> 
    </div>

    <div class="patch_minheight"></div>
    <div id="footer_guarantor"></div>
  </div>






------解决方案--------------------
这是mvc
index.php是入口文件 home是控制器 validateLoginForm 是方法

------解决方案--------------------
你这个开启了重写了吧。
------解决方案--------------------
日 谁删了我的六楼
我的回复是

这是mvc
index.php是入口文件
home是控制器 validateLoginForm是方法

违反了那条规定?
------解决方案--------------------
可以理解为一个类
PHP code

class Welcome extends CI_Controller {
    public function index()
    {
        $this->load->view('welcome_message');
    }
}