You can set the url of the form action attribute
http://username:password@www.yourserver.com/somewebpage.html
but I don't think this will work with Internet Explorer. There have been some spammers abusing this and Microsoft turned it off.
source
to share