K
kike
Hi.
i have a change password form (plugin for squirrel mail) but when i
use a special character like a "ñ" or "Ñ" i can't logon again.
Well, an ugly solution is to filter that special characters.
Anybody know how to do that=? Or a small tutorial to implement that?
I do some code, but nothing happend.
--*******************
<script>
function check_pass()
{
pass1=document.forms[0].elements["new_pw1"].value;
pass2=document.forms[0].elements["new_pw2"].value;
if (pass1.indexOf("ñ")!=-1 || pass2.indexOf("ñ")!=-1)
alert("your code can't contain the ñ case");
else
document.forms[0].submit();
}
</script>
****************************
thanks ignacio
i have a change password form (plugin for squirrel mail) but when i
use a special character like a "ñ" or "Ñ" i can't logon again.
Well, an ugly solution is to filter that special characters.
Anybody know how to do that=? Or a small tutorial to implement that?
I do some code, but nothing happend.
--*******************
<script>
function check_pass()
{
pass1=document.forms[0].elements["new_pw1"].value;
pass2=document.forms[0].elements["new_pw2"].value;
if (pass1.indexOf("ñ")!=-1 || pass2.indexOf("ñ")!=-1)
alert("your code can't contain the ñ case");
else
document.forms[0].submit();
}
</script>
****************************
thanks ignacio