忘记密码验证
Forgot password validation
这是我的项目结构,
类-> forgotpassword.php ,
index.php 在项目的外侧。
要求是,每当非注册用户点击忘记密码link。它应该将他重定向到我的注册页面。
我正在做的是,
else{
//$link_address = '';
echo 'Hi user, You are not yet registered to Wings2Roots<br><br><a href="index.php"><br/>Please click here to SIGNUP</a>';
}
所以,每当我点击 SIGNUP 时,它都会将我重定向到 http://localhost/ProjectName/classes/index.php。结果它显示找不到文件。
这里的问题是,我不希望 类 在 url.
您可以更改 index.php
。至 /index.php
.
<a href="/index.php"><br/>Please click here to SIGNUP</a>
或者,您可以创建一个始终指向根目录的 base_url()
函数,然后执行如下操作:
<a href="<?php echo base_url();?>/index.php"><br/>Please click here to SIGNUP</a>
试试这个..
<a href="../index.php"><br/>Please click here to SIGNUP</a>
这是我的项目结构, 类-> forgotpassword.php ,
index.php 在项目的外侧。 要求是,每当非注册用户点击忘记密码link。它应该将他重定向到我的注册页面。
我正在做的是,
else{
//$link_address = '';
echo 'Hi user, You are not yet registered to Wings2Roots<br><br><a href="index.php"><br/>Please click here to SIGNUP</a>';
}
所以,每当我点击 SIGNUP 时,它都会将我重定向到 http://localhost/ProjectName/classes/index.php。结果它显示找不到文件。 这里的问题是,我不希望 类 在 url.
您可以更改 index.php
。至 /index.php
.
<a href="/index.php"><br/>Please click here to SIGNUP</a>
或者,您可以创建一个始终指向根目录的 base_url()
函数,然后执行如下操作:
<a href="<?php echo base_url();?>/index.php"><br/>Please click here to SIGNUP</a>
试试这个..
<a href="../index.php"><br/>Please click here to SIGNUP</a>