How To Open Register With Big Letters ?

Started on the old forum in April 2008 · view the original in the archive · old links redirect here

21 replies · 1,338 views · started 18 years ago · 1 min read

TL;DR · summary of 21 replies
  • - Guest edited the core.php and used format: '*X' in input tag, which did not work as expected.
  • - Guest tried to modify $rform = "<form action="register.php" method="post">" with style attribute for input tag but still had issues.
  • - rukiya provided a corrected solution: format should be '*X' instead of *x', and all uppercase letters will be accepted.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

6 participants
SiLeNce Developer · 138 posts #1

who know how to change it ?

where to change ??

function scharin($word)

{

$chars = "abcdefghijklmnopqrstuvwxyz0123456789-_";

for($i=0;$i<strlen($word);$i++)

{

$ch = substr($word,$i,1);

$nol = substr_count($chars,$ch);

if($nol==0)

{

return true;

}

}

return false;

}

alesh Lead · 604 posts #2

$chars = "ABCDabcdefghijklmnopqrstuvwxyz0123456789-_";

I THINK

eeeeerrr....

amylee Principal · 1,092 posts #3

bit obvious aint it?

function scharin($word)

{

$chars = "ABCDEFGHIJKMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";

for($i=0;$i<strlen($word);$i++)

{

$ch = substr($word,$i,1);

$nol = substr_count($chars,$ch);

if($nol==0)

{

return true;

}

}

return false;

}
SiLeNce Developer · 138 posts #4

urm ..

amylee cant use the code .. ??

Username must start with a letter from a-z

kaibaspoon Developer · 63 posts #5

TRY THIS

function scharin($word)

{

$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ0123456789-_!@#$%^&*()+=<>?";

for($i=0;$i<strlen($word);$i++)

{

$ch = substr($word,$i,1);

$nol = substr_count($chars,$ch);

if($nol==0)

{

return true;

}

}

return false;

}
SiLeNce Developer · 138 posts #6

dont work ..

said

Username must start with a letter from a-z

and

username is invalid

amylee Principal · 1,092 posts #7
function scharin($word)

{

  $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";

  for($i=0;$i<strlen($word);$i++)

  {

    $ch = substr($word,$i,1);

  $nol = substr_count($chars,$ch);

  if($nol==0)

  {

    return true;

  }

  }

  return false;

}

function isdigitf($word)

{

  $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

    $ch = substr($word,0,1);

  $sres = ereg("[0-9]",$ch);

   

    $ch = substr($word,0,1);

  $nol = substr_count($chars,$ch);

  if($nol==0)

  {

    return true;

  }

  return false;

}

thats what you need to use

SiLeNce Developer · 138 posts #11

i mean use the code

function scharin($word)

{

$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_!@#$%^&*()+=<>,.?/[]{}";

for($i=0;$i<strlen($word);$i++)

{

$ch = substr($word,$i,1);

$nol = substr_count($chars,$ch);

if($nol==0)

{

return true;

}

}

return false;

}

function isdigitf($word)

{

$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

$ch = substr($word,0,1);

$sres = ereg("[0-9]",$ch);

$ch = substr($word,0,1);

$nol = substr_count($chars,$ch);

if($nol==0)

{

return true;

}

return false;

}

just use code in

$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_!@#$%^&*()+=<>,.?/[]{}";

amylee Principal · 1,092 posts #12

if you use symbols you will find out pretty soon you will get a load of syntax errors

Guest #16

I edit this in core.php but not working :|

sweetangel Lead · 885 posts #18

I have this:

$rform = "<form action=\"register.php\" method=\"post\">";
  $rform .= "$ue Nickname: <input name=\"uid\" style=\"-wap-input-format: '*x'\" maxlength=\"12\"/>
";
  $rform .= "$pe Password: <input type=\"password\" name=\"pwd\" maxlength=\"10\"/>
";
  $rform .= "$ce Ripeti Password: <input type=\"password\" name=\"cpw\" maxlength=\"10\"/>
";

if like my post click:

External image (may be gone)

Guest #19

try to edit small x to big X

your code: $rform .= "$ue Nickname: <input name="uid" style="-wap-input-format: '*x'" maxlength="12"/> ";

to this:

$rform .= "$ue Nickname: <input name="uid" style="-wap-input-format: '*X'" maxlength="12"/> ";

rukiya Lead · 569 posts #20

try to edit small x to big X

your code: $rform .= "$ue Nickname: <input name="uid" style="-wap-input-format: '*x'" maxlength="12"/> ";

to this:

$rform .= "$ue Nickname: <input name="uid" style="-wap-input-format: '*X'" maxlength="12"/> ";

you cant missguide people here by giving ppl a limited code and you didnot understand what i said in my previous code, you wont get any kind of error in my coding if you use it vividly.

if you use format: '*X'" it will accept only uppercase charecters but if you use

$rform = "[size="1"]$errl[/size]

";
  $rform .= "$ue UserID: <input name=\"tfuid\"  maxlength=\"15\"/>
";

it will accept all kind of charecters thats equivalant to

$rform = "[size="1"]$errl[/size]

";
  $rform .= "$ue UserID: <input name=\"tfuid\" format=\"*M\" maxlength=\"15\"/>
";

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close