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 Rhinorhino 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
Joined
Jan 5, 2003
Messages
235
Location
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
 
BitFuzzy:

Although your answer will work, it is more appropriate to advice given in the JavaScript forum than the PHP forum.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top