Hi,
On Thu, Oct 07, 1999 at 11:45:31AM -0700, erdinc sabur wrote:
> hello,
>
>
> Is there a way to convert all text input data of the user to uppercase? My
> Msql is version 2.0.3
first: better update to 2.0.11
>
> I wrote a function for this, but I think it won't work and it is too long.
> Is there a shorter way?
of course !
>
> 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.
what is the use of $i ?!?
better use:
$uppercaseword = tr($word,"a-z","A-Z");
and
$i = #$word;
if you want to have the length of $word in $i !
AND : -> read the online manual ... all this stands there !
Manfred
>
> 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/
---end quoted text---
-- Manfred Fandel Telefon(Fax auf Anfrage): Georgstr.14 02236-842403 50389 Wesseling EMAIL: fandel@fandel.com PGP-key per "finger -l fandel@zeus.cs.uni-bonn.de" ------------------------------------------------------------------------- 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