0

我有一个正确验证用户身份的登录页面,问题是它没有找到下一个文件来打开它。

我的文件如下

  **Plugin Root directory**
     |                  |
     myindex_2343.php   | 
                        **MyClasses directory**
                          |               |
                          Login_2343.php  Member_2343.php

登录_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.
4

1 回答 1

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>';
             }
        }
  ?>
于 2013-02-15T08:57:57.817 回答