제 문제는 성공적으로 로그인 한 후 가고있는 페이지로 리디렉션되지 않습니다.html 페이지로 리디렉션 할 수 없습니다.
더하기, 나는 아파치 서버를 사용하고 있습니다.
다음은 수정해야 할 PHP 부분입니다. header("location:$http://localhost/.../contacts.html");
를 사용하여
if($count==1){
// Register $Username, $Password and redirect to file "login_success.php"
session_register("Username");
session_register("Password");
echo "Correct Username & Password";
header("location:$http://localhost/.../contacts.html");
}
else {
echo "Wrong Username or Password";
header("location:../php/error.php");
}
내가 403 금지 오류가 .. 이 오류가 웹 페이지에 있지만 방화범에 표시되지 않은 얻을.
내가
header('Location: http://localhost/.../contacts.html') ;
또는
로 교체하는 경우header("Location: ./../contacts.html");
또는
header('Location: ./../contacts.html');
그것은 나에게 오류를 제공하지 않습니다하지만 만
이설명과 함께 좀 도와주세요 있습니다 .. Contacts.html이의 HTML 코드를 보여주는 페이지 자체를 표시하지 않음으로써 불을 지르고에 반응하고 이해하는 것이이 문제를
미안 어떤 문법 실수와 어려움을 해결하는 방법 this :
하지만 ... 끝났어, 항상 우리가 실제 오류 메시지를 알려 주시기 바랍니다. 감사. –