0

hi i'm just wondering on how can i make all the type text in my textbox all uppercase using php? tnx Alot..

5
Contributors
9
Replies
10
Views
5 Years
Discussion Span
Last Post by designershiv
0

hi i'm not getting it correctly. can you give me an example code.atleast 1 textbox that are already uppercase when you type a word..thanks in advance, coz i can find a way to incorporate it using a textbox.

0

it'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.

0

ok thanks a lot for the advice i'll try it..hope i can make something out of it..

0

We can use the strtoupper() function to do the trick for us

<?php
$word = "we Love php";
$word = strtoupper($word);
echo $word; //WE LOVE PHP
?>
0

Guys Thanks a lot for the help its now working already..again thanks everyone:)

0

you can do either by php or simply css ,
input{text-transform:uppercase;}
even you can use css or jqeury to find particular textbox,Guys Please correct me if am wrong

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.