I would like to take the username/password in a HTML page, POST it to a PHP script, which validates it against HTACCESS to redirect to a HTACCESS protected directory.
Starting point: www.mysite.com/login.html -> Forms w/ POST method -> www.mysite.com/login.php -> validate against HTACCESS -> www.mysite.com/restricted/
Is this possible?
If so, can somebody throw me some code? Or a website with a good example? Everything I’ve managed to find on Google has led to failure.
Thanks in advance