这是我的项目结构, 类-> forgotpassword.php ,,
index.php 在项目的外侧。 要求是,每当非注册用户点击忘记密码链接时。它应该将他重定向到我的注册页面。
我正在做的是,
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 中的那个类。
最佳答案
试试这个..
<a href="../index.php"><br/>Please click here to SIGNUP</a>
关于php - 忘记密码验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29164672/