Solved

How to make the value passed uppercase

Posted on 2007-11-28
3
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

690 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