Solved

How to make the value passed uppercase

Posted on 2007-11-28
3
185 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
Comment Utility
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
Comment Utility
$code = $_POST['code'];

$code = strtoupper($code);
0
 

Author Comment

by:PeterdeB
Comment Utility
bulls eye thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

763 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

11 Experts available now in Live!

Get 1:1 Help Now