内部服务器错误:代码生成网址时为500

时间:2016-01-12 16:26:52

标签: http-status-code-500

当我的PHP脚本创建一个URL,如:.... / recover.php?success,然后创建一个错误: 内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求。 请通过webmaster@testlogin.muhammadmasud.info与服务器管理员联系,告知他们此错误发生的时间以及您在此错误发生之前执行的操作。

服务器错误日志中可能提供了有关此错误的更多信息。

此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误错误。

我的剧本`

        ?>
                    <p>Thanks, we have emailed you.</p>
        <?php

              }else{

            $mode_allowd  = array('username', 'password');

            if(isset($_GET['mode']) === true && in_array($_GET['mode'], $mode_allowd) === true){

                if(isset($_POST['email']) === true && empty($_POST['email']) === false){
                        if(email_exists($_POST['email']) === true){
                            Recover($_GET['mode'], $_POST['email']);

                                      header('location: recover.php?success');
                                      exit();
                        }else{
                            echo '<p style="color:red">Oops, we could not find that email address!</p>';
                        }
                }
        ?>
                    <form action="" method="post">
                        <table style="boder:none">
                            <tr>
                                <td>Please enter your email address:</td>
                            </tr>
                            <tr>
                                <td><input type="text" name="email"></td>
                            </tr>
                            <tr>                                    
                                <td><input type="submit" value="Recover"></td>
                            </tr>
                        </table>
                    </form>
        <?php

            }else{
                header('location: index.php');
                exit();
            }`

0 个答案:

没有答案
相关问题