While I am running the html code using below code, the login is happening successfully.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript" type="text/javascript">
function loginpage_onload() {
document.forms[0].submit();
}
</script>
</head>
<body onload="loginpage_onload();">
<form action="https://www.facebook.com/login.php" method="post">
<input type="hidden" name="lsd" value="cdfvrtg" autocomplete="off" />
<input type="hidden" name="email" id="email" value="mymail.com"/>
<input type="password" name="pass" id="pass" class="inputpassword" value="mypass" tabindex="1"/>
</form>
</body>
</html>
but, when I am copying the same thing in a .php page and running the php, its not happening. Prompt: "For your security, never enter your Facebook password on sites not located on Facebook.com"
Why it's working in .html and not in .php?