我有一个正确验证用户身份的登录页面,问题是它找不到要打开它的下一个文件。
我的文件如下
**Plugin Root directory**
| |
myindex_2343.php |
**MyClasses directory**
| |
Login_2343.php Member_2343.php
Login_2343.php
<form name="mylogin" action="" method="post">
.....
</form>
<?php
if(isset($_POST['username']))
{
Authentication code goes here
if(Authenticate)
{
echo '<script type="text/javascript">window.location.href="MyClasses
/Member_2343.php";</script>';
}
}
?>
错误消息如下:
The requested URL /wordpress/wp-admin/MyClasses/Member_2343.php was not
found on this server.
答案 0 :(得分:0)
在window.location.href
中添加插件根目录<form name="mylogin" action="" method="post">
.....
</form>
<?php
if(isset($_POST['username']))
{
Authentication code goes here
if(Authenticate)
{
echo '<script type="text/javascript">window.location.href="/pluginroot/MyClasses
/Member_2343.php";</script>';
}
}
?>