not incrementing variable

From: erdinc sabur (esabur@hotmail.com)
Date: Fri Oct 08 1999 - 04:45:31 EST


hello,

Is there a way to convert all text input data of the user to uppercase? My
Msql is version 2.0.3

I wrote a function for this, but I think it won't work and it is too long.
Is there a shorter way?

When I use the function in a web page, the integer variable in the script
isn't incremented. Why? I want it to be incremented.

thanks for the future probable answers

The script function:

while($ptext[$i]>" ")
{
printf("<BR>%d",$i);
if ($ptext[$i]=="a") {$sontext[$i]="A";}
if ($ptext[$i]=="b") {$sontext[$i]="B"; }
if ($ptext[$i]=="c") {$sontext[$i]="C"; }
if($ptext[$i]=="ç") { $sontext[$i]="Ç"; }
if ($ptext[$i]=="d") { $sontext[$i]="D"; }
if($ptext[$i]=="e") {$sontext[$i]="E"; }
if ($ptext[$i]=="f") { $sontext[$i]="F";}
if ($ptext[$i]=="g") { $sontext[$i]="G"; }
if ($ptext[$i]=="ð") { $sontext[$i]="Ð"; }
if ($ptext[$i]=="h") { $sontext[$i]="H"; }
if ($ptext[$i]=="ý") { $sontext[$i]="I"; }
if ($ptext[$i]=="i") { $sontext[$i]="Ý"; }
if ($ptext[$i]=="j") { $sontext[$i]="J"; }
if ($ptext[$i]=="k") { $sontext[$i]="K";}
if ($ptext[$i]=="l") { $sontext[$i]="L"; }
if ($ptext[$i]=="m") { $sontext[$i]="M"; }
if ($ptext[$i]=="n") { $sontext[$i]="N"; }
if ($ptext[$i]=="o") { $sontext[$i]="O"; }
if ($ptext[$i]=="ö") { $sontext[$i]="Ö"; }
if ($ptext[$i]=="p") { $sontext[$i]="P"; }
if ($ptext[$i]=="q") { $sontext[$i]="Q";}
if ($ptext[$i]=="r") { $sontext[$i]="R"; }
if ($ptext[$i]=="s") { $sontext[$i]="S"; }
if ($ptext[$i]=="þ") { $sontext[$i]="Þ"; }
if ($ptext[$i]=="t") { $sontext[$i]="T"; }
if ($ptext[$i]=="u") { $sontext[$i]="U"; }
if ($ptext[$i]=="ü") { $sontext[$i]="Ü"; }
if ($ptext[$i]=="v") { $sontext[$i]="V"; }
if ($ptext[$i]=="w") { $sontext[$i]="W";}
if ($ptext[$i]=="x") { $sontext[$i]="X";}
if ($ptext[$i]=="y") { $sontext[$i]="Y"; }
if ($ptext[$i]=="z") { $sontext[$i]="Z";}

        $i= ($i+1);
}

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/



This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:03:51 EST