PHP スクリプトが ..../recover.php?success のような URL を作成すると、エラーが発生します: 内部サーバー エラー サーバーで内部エラーまたは構成ミスが発生し、要求を完了できませんでした。サーバー管理者 (webmaster@testlogin.muhammadmasud.info) に連絡して、このエラーが発生した時刻と、このエラーの直前に実行したアクションを知らせてください。
このエラーの詳細については、サーバー エラー ログを参照してください。
さらに、ErrorDocument を使用して要求を処理しようとしたときに、500 Internal Server Error エラーが発生しました。
私のスクリプト `
?>
<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();
}`