I am trying to autologin to a password protected directory (protected in cpanel).

That is, I have a form which collects a Username and Password and then submits.

But then the cpanel login pops up and duplicates the process.

So how to send the Username and Password to the cpanel generated login?

I have this so far:

Code:
<form method="post" name="logonform" action="http://mysite.com/mydir/index.html/login/?user=Username&pass=Password">
...
<input type="text" name="Username">
...
<input type="password" name="Password">
...
<input type="image" src="img/login.gif" width="60" height="38" border="0">
...
</form>
It doesn't work!