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
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.
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;
}
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
tnks amy External image (may be gone)
if like my post click:
and if I wont use a symbol ??? how edit the code??? ex:
register nick:
.::KeN::.
pls amy help me External image (may be gone)
if like my post click:
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-_!@#$%^&*()+=<>,.?/[]{}";
but I use only **. : - _ *** and stop External image (may be gone)
if like my post click:
I have edited files.but if enter a register 1 nick with bigs letters failed registration...External image (may be gone)
if like my post click:
find it in core.php
function registerform($ef)
replace this
$rform = "[size="1"]$errl[/size]
";
$rform .= "$ue UserID: <input name=\"tfuid\" maxlength=\"15\"/>
";
for
$rform = "[size="1"]$errl[/size]
";
$rform .= "$ue UserID: <input name=\"tfuid\" format=\"*x\" maxlength=\"15\"/>
";
I found error External image (may be gone) rukiya not small x ...need big X
$rform .= "$ue UserID: <input name="tfuid" format="*X" maxlength="15"/> ";
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:
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\"/>
";