【发布时间】:2016-03-30 08:16:49
【问题描述】:
我正在尝试在点击时加载页面, 我创建了一个电子邮件验证链接,它可以打开页面并更新我的数据库,一切正常,但该页面包含一个按钮,我希望用户单击该按钮并打开具有登录窗口的第一页。 我的 verify.html:
<div class="container container-table">
<div class="row vertical-center-row">
<div class="text-center col-md-4 col-md-offset-4" style="background:blue">
<h3> Thankyou For Veryfing</h3>
<p>You Are Verified</p>
<form action="login.php/verify_to_login" method="post">
<button type="submit" class="btn btn-success" >Sign Up>Go To Login</button>
</form>
</div>
</div>
</div>
我的控制器函数会像这样加载验证页面:http://localhost/index.php/login/verify/1567af19e10ce4
public function verify($VerificationCode){
$this->load->model('My_model');
$this->load->helper('url');
$this->My_model->verifymail($VerificationCode);
/* Send to the verification page */
$this->load->view("verify.html");
}
这是我想要的 verify_to_login() 函数,当我单击按钮时它应该打开 header.html,这应该像 http://localhost/index.php/login/verify_to_login 但是当我点击按钮时,它显示http://localhost/index.php/login/verify/login.php/verify_to_login 公共功能 verify_to_login(){ $this->load->view("header.html"); }
我无法理解为什么会这样。?? :(
【问题讨论】:
标签: php html codeigniter