Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > filter special characters ( ascii > 127) in Change password

Reply
Thread Tools

filter special characters ( ascii > 127) in Change password

 
 
kike
Guest
Posts: n/a
 
      07-20-2004
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: convert unicode characters to visibly similar ascii characters Laszlo Nagy Python 6 07-02-2008 04:42 PM
Re: convert unicode characters to visibly similar ascii characters M.-A. Lemburg Python 0 07-02-2008 08:39 AM
Re: convert unicode characters to visibly similar ascii characters Terry Reedy Python 0 07-01-2008 07:46 PM
Special Characters (Unicode, Ascii) in Python and MySQL ronrsr Python 1 01-02-2007 01:43 PM
[FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127) Alextophi Perl Misc 8 12-30-2005 10:43 AM



Advertisments