Hello,
i have been looking for a html form that will allow email users login to webmail system directly from my site (without popup authorisation window) and could not find it.

Finally i created it myself (using one other idea from this forum's users)

It is an universal login form,
you can use it to login to any Cpanel based domain's webmail (even on other server) and to any WebMail installed (Horde, NeoMail, Squirrel)

Here is the code:



CODE
<title>AzerHost Webmail</title>



<body>

<script language="javascript">







<!-- Begin



function Login(form) {



var username = form.username.value;



var password = form.password.value;



var server = form.server.value;

var type = form.type.value;



if (username && password && server) {



var httpurl = "http://" + username+ "+" + server + ":" + password + "@" + server + ":2095/"  + type;



window.location = httpurl;



}



else {



alert("Please enter your username and password.nYour username is before the @ sign in your e-mail address.");



  }



}







               </script>

<table align="center"  >



 <tr >



   <td  >

     <form name=login>



       <table border=0 cellpadding=3 align="center" width="100%" cellspacing="0" >

         

         <tr>

           <td colspan=2 align=center>[b]webmail login[/b]</td>

         </tr>

         <tr>

           <td align=right>Email:</td>

           <td> <input type=text name=username size=20 maxlength="26">

             @

             <input type="text" name="server" value=domain.com> </td>

         </tr>

         <tr>

           <td align=right>Password</td>

           <td> <input type=password name=password size=20>

               

             <select name="type" id="type">

               <option value="neomail/neomail.pl" selected>NeoMail</option>

               <option value="horde/index.php">Horde</option>

               <option value="3rdparty/squirrelmail/index.php">SquirrelMail</option>

             </select> </td>

         </tr>

         <tr>

           <td colspan="2" align=right>[center]

               <input window=new type=button value="Login" onClick="Login(this.form)" name="button">

               <input type="reset" name="Reset" value="Reset">

             [/center]</td>

         </tr>

       </table>



       

     </form>



</table>





Html file is also attached