Jump to content

Recommended Posts

Posted

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??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...