Hi, I'm trying to make an email login form in my client's website.
My idea is for my client to login to their email account from their website using their username only (no need to type @domain.com). I choose squirrel mail as their webmail.
But the login form from squirrel mail keeps popping up.
Btw, I'm a cPanel reseller. Thanks in advance
here is my simplified code:
<html>
<head><title></title>
<script language="JavaScript" type="text/JavaScript">
function processinfo (){
login_form.user.value = login_form.loginName.value + "@domain.com";
login_form.pass.value = login_form.user_pwd.value;
}
</script>
</head>
<body>
<form name="login_form" action= "https://domain.com:2096/3rdparty/squirrelmail/index.php" target = "new" onSubmit="processinfo()" method="post">
Email Login<br>
<input type="text" name="loginName" value="">
Password<br>
<input type="password" name="user_pwd" value="" >
<input type="submit" name="login" value="Login">
</form>
</body>
</html>
My idea is for my client to login to their email account from their website using their username only (no need to type @domain.com). I choose squirrel mail as their webmail.
But the login form from squirrel mail keeps popping up.
Btw, I'm a cPanel reseller. Thanks in advance
here is my simplified code:
<html>
<head><title></title>
<script language="JavaScript" type="text/JavaScript">
function processinfo (){
login_form.user.value = login_form.loginName.value + "@domain.com";
login_form.pass.value = login_form.user_pwd.value;
}
</script>
</head>
<body>
<form name="login_form" action= "https://domain.com:2096/3rdparty/squirrelmail/index.php" target = "new" onSubmit="processinfo()" method="post">
Email Login<br>
<input type="text" name="loginName" value="">
Password<br>
<input type="password" name="user_pwd" value="" >
<input type="submit" name="login" value="Login">
</form>
</body>
</html>
Comment