hi i'm just wondering on how can i make all the type text in my textbox all uppercase using php? tnx Alot..
ehpratah
48
Posting Whiz in Training
Recommended Answers
Jump to PostYou can use strtoupper
Jump to Postit's not that hard, you'll need a 'onkeyup' or something in that direction on your textfield, make it point to a javascript function that goed like
document.getElementById('yourtextfieldID').innerHTML = strtoupper(document.getElementById('yourtextfieldID').innerHTML;
don't litteraly copy/paste it, i wrote this out of the top of my head.
Jump to PostWe can use the strtoupper() function to do the trick for us
<?php $word = "we Love php"; $word = strtoupper($word); echo $word; //WE LOVE PHP ?>
All 9 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
ehpratah
48
Posting Whiz in Training
ehpratah
48
Posting Whiz in Training
phoenix_2000
30
Junior Poster in Training
ehpratah
48
Posting Whiz in Training
arjunrai
0
Newbie Poster
phoenix_2000
30
Junior Poster in Training
ehpratah
48
Posting Whiz in Training
designershiv
1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.