shimamoto Posted July 19, 2003 Posted July 19, 2003 I've been able to use the horde javascript on my site to work for my webmail login, but when I tried to change the button to an image file I can't seem to get it to work. Can someone show me how to get this to work correctly? Thanks. ><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 = "https://" + username +"+"+server+ ":" + password + "@" + server + ":2096/" + "horde/index.php" window.status='WebMail' window.location = horde } else { alert("Please fill the username and the password") } } </script> <form name=login><input type="hidden" value="techphilly.com" name="server" maxlength="30" size="15"><br> login: <input type=text name=username size=9 maxlength="30"><br> password: <input type=password name=password size=9 maxlength="30"> <input type="image" src="images/go.jpg" border="0" width="21" height="21" onClick="Login(this.form)" name="button"> </form> I have this on my site at: http://www.techphilly.com/new/login.html Quote
leezard Posted July 19, 2003 Posted July 19, 2003 Heres the code I use for a webmail page, sorry I cant remember who wrote it but you can change pretty much everything. This one logs into neomail but changing it to horde would be easy. ><html> <head> <title>WebMail For X-TremeModz.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#000000" text="#CCCCCC" link="#FFFFFF"><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 neomail = "http://" + username +"+"+server+ ":" + password + "@" + server + ":2095/" + "neomail/neomail.pl" window.status='WebMail' window.location = neomail } else { alert("Please fill the username and the password") } } </script> <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><font color="#CCCCCC">X-TremeMail Login</font></b></h1> <!-- Replace the ****** in the next line with, well, you know. --> <input type="hidden" value="x-trememodz.com" 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> </body> </html> Quote
leezard Posted July 19, 2003 Posted July 19, 2003 nevermind, I just compared the two and they are the same thing lol thats what i get for thinking. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.