filter special characters ( ascii > 127) in Change password

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top