Next Generation Emulation banner
1 - 1 of 1 Posts

· Registered
78 Posts
Discussion Starter · #1 · (Edited)
Hello there!
I'm building a website in php/MySQL
in my "resgister" script I want to test the login to check if there is some bad char. in!
Exemple if people put Sek/*@xx as a login ( in regsiter form )
I want to prompt them that there are some bad charactere

How can I get the "ord" of each char. of the $Login
and the length[number of char. of $Login]
Somekind of(not a php script: just an exemple):
function Good_Char($Login) {
  For(i=0;i=length($login);i++) {
    if ( (ORD($Login)>ord("a"))AND(ORD($Login)<ord("z")) ) {
      return true;
    } else {
      return false;
Thank for your answer.

Ps: FireGL if you see this post! Hello men, and do you see?
I'm back to Emuforums :D
1 - 1 of 1 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.