squirrelmail must be set up differently on differnt builds of OS
PHP Code:
http://domain.com:2095/squirrelmail/src/login.php worked for me.
mine goes to neomail it needs the 3rdparty in it
I am sure you could write a php or cgi script to redirect to the different mail clients but that wasnot the orig question
here is a simple java script
<script type="text/javascript"> function set_target() {
var username, password, servername, login_option, protacal;
domain = document.forms.login_form.user.value;
login_option = document.forms.login_form.login_option.value;
login_option == '2096' ? protacal = 'https://' : protacal = 'http://'
;
document.forms.login_form.action = protacal + domain + ':' + login_option
;
} </script>
domain name
<form name="login_form" method="post" onsubmit="set_target();">
<table width="154" height="59" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td height="38">
<p><font color="#ffffff" size="1">DOMAIN
NAME </font>
<input style="width: 125px; height: 18px;" name="user" class="input" type="text" value="">
<br> <select style="width: 125px; height: 18px;" name="login_option" class="input">
<option value="2096/3rdparty/squirrelmail/src/login.php">squirrelmail</option>
<option value="2096/neomail/neomail.pl">neomail/</option>
<option value="2096/horde/index.php">horde Webmail</option></select> <font size="1" color="#ffffff">LOGIN
TYPE </font> </p></td></tr><tr><td height="21">
<input type="image" src="/images/login.gif" width="47" height="16"> </form>