so I gahter this goes in the <head> section
<script language="javascript">
function Login(form) {
var username = form.username.value
var password = form.password.value
var server = form.server.value
if (username && password && server) {
var horde = "http://" + username +"+"+server+ ":" + password + "@" + server + ":2095/" + "horde/index.php"
window.status='WebMail'
window.location = horde
}
else {
alert("Please fill the username and the password")
}
}
</script>
and this part below goes where i want the login to be
<form name=login>
<table border=0 cellpadding=1 align="center" width="430">
<tr><td align=center>
<font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">
<h1><b>WebMail Login</b></h1>
<input type="hidden" value="******" name="server" maxlength="30" size="15">
</font></td></tr>
<tr><td align=center>
<h2>User:
<input type=text name=username size=15 maxlength="30">
</h2></td></tr>
<tr><td align=center>
<h2>Password:
<input type=password name=password size=20>
</h2></td></tr>
<tr><td align=center>
<input type=button value="Login" onClick="Login(this.form)" name="button">
</td></tr>
</table>
</form>
i changed the domain name, but when I load the page I get a debugging error, and I click cancle and then I enter user name (black, password white) and it just reloads the page when I click the login button. What am i doing wrong??