Solved

How to make the value passed uppercase

Posted on 2007-11-28
3
186 Views
Last Modified: 2008-02-01
Hi all

The following value should be all in uppercase characters


<input name="code" type="text" value="">

So that value="VALUE" becomes a value that is uppercase

Thank you all
0
Comment
Question by:PeterdeB
3 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 500 total points
ID: 20370848
Use strtoupper() http://www.php.net/manual/en/function.strtoupper.php

On the receiving end

$code = strtoupper($_POST["code"]);
0
 
LVL 28

Expert Comment

by:gamebits
ID: 20370852
$code = $_POST['code'];

$code = strtoupper($code);
0
 

Author Comment

by:PeterdeB
ID: 20370879
bulls eye thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 28
converting numbers with php 3 31
How to convert my query to the proper format? 5 18
is this a cms? 8 35
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now