这是我的项目结构,类-> 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>';
}所以,每当我点击注册时,它就会将我重定向到http://localhost/ProjectName/classes/index.php。因此,它将显示“未找到的文件”。问题是,我不想在那个网址里上那门课。
发布于 2015-03-20 10:54:21
试试这个..。
<a href="../index.php"><br/>Please click here to SIGNUP</a>发布于 2015-03-20 10:47:46
你可以改变你的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>https://stackoverflow.com/questions/29164672
复制相似问题