Login Form For Http Basic Auth

Ich betreibe ein Perl Anwendung mit dem Namen bitlfu.Für die Anmeldung verwendet es so etwas wieApache HTTP Basic Auth aber kein Formular. Ich möchte ein Formular für die Anmeldung mit Benutzernamen und Passwortfeld erstellen. Ich habe JavaScript und PHP bis jetzt ohne Ergebnisse ausprobiert.

So brauche ich Hilfe!

PS: Diese Art von URL funktioniert

http://user:password@host.com