I am using style="text-transform:uppercase" for text box text capitalisation, great it is working . But…When I post the textbox value from page to other page via php , I view Normal text on second page which I entered in first page .
Suppose I enter value on page first :
JOHN CARTOR
I get like this value in other page :
John cartor , john cartor
Why? even I am using “transform uppercase” . Is it any other way that we can show value of textbox in uppercase from end to end even when we use php "POST & GET " method?
The text-transform is working on your first page because the textarea on that page is what is styled. It is only changing the visual rendering of the text, it does not change the actual text case that was entered.
The actual text case that was entered is what will be posted to your second page.[quote=“shivkumar, post:1, topic:293445”]
Is it any other way that we can show value of textbox in uppercase from end to end even
[/quote]
If you have control of the CSS on the second page then you can set text-transform:uppercase on the element that receives the text.
CSS only alters visual appearance. It cannot alter what the content is.
To alter the case for storage in the database you can change it with PHP using the strtoupper (String to Uppercase) function. http://php.net/manual/en/function.strtoupper.php