I have a question about HTML. I know that there is this mechanism that wouldn’t allow users to get a direct access to a web-page unless they enter a password and a name. What’s the HTML code for that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a manual section in PHP describing how to output HTTP headers that force an HTTP Auth. You can’t do it with HTML alone.
http://php.net/manual/en/features.http-auth.php
Personally I’d prefer the
.htaccessmethod, but in the end, both do the same thing.PS: Getting pretty cold ’round here.