How can I use HTTP basic Authentication and have the user submit their Username and Password in a HTML form and have it Authenticate using HTTP Basic Authentication.
I heard that Internet Explorer no longer supports the use of http://user:password@website.com no more so I don’t know the best way to approach this.
Use of PHP and javascript and HTML is OK. I don’t want to use PERL and I perfer no big javascript libs.
If you don’t think HTTP Basic Auth. is the best way, please recommend something easy and simple to do. It will only be a login site for 5-6 people. No need to complicate it.
jQuery library has ajax function which has “password” and “user” parameter for Authentication. When user click login you can get value of login and password and passed to $.ajax function.
$('#submit').click(function() { $.ajax({ url: 'authenticated.php', username: $('#login').val(), password: $('#passwd').val(), success: function(data) { //do something with data from the server } }); return false; });