Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert string to upper case?

Status
Not open for further replies.

martinb7

Programmer
Jan 5, 2003
235
GB
Hi, i was wondering how you would convert a string to uppercase??

e.g. $_GET['format'] say it held the value of ps2, how could you convert that to uppercase?

any ideas??


Martin

Computing help and info:

 
Like tweenerz said..

or if it's a form variable you can always add

onkeyup="javascript:this.value=this.value.toUpperCase();"

to the form field you want to force uppercase upon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top