Hi Guys,

I am having difficulties in logging in to squirrelmail using username/password in url. Squirrelmail is installed in a remote server and I need to login into squirrelmail from my home page. User has to input the username and password onto the home page and he will directly redirected to his mail inbox.

Here is my code that I used to do that,

<FORM ACTION="http://example.com:2095/webmail/src/redirect.php" METHOD="POST">
<input type=hidden name=SESSIONID value="NONE">
<input type=hidden name=LANGUAGE value="English">

USERNAME: <INPUT TYPE=TEXT NAME="login_username" size="21">
<INPUT TYPE=HIDDEN NAME="js_autodetect_results" VALUE="0">
<INPUT TYPE=HIDDEN NAME="just_logged_in" value=1>
<br>
PASSWORD: <INPUT TYPE=PASSWORD NAME="secretkey" size="21">
<input type="submit" value="Login">
</form>

But this is not working. Is there anyone can help me?

Any suggestion is highly appreciated.

Thanks in advance.
Palash.

    If the values are supposed to be sent via the URL, then you need to set method="get" in your <form> element.

      Thanks nogdog for your attention......but still it doesn't work. once sumitting the form a promtp window for username and password appears on the screen.

        Write a Reply...