How to make the value passed uppercase

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
PeterdeBAsked:
Who is Participating?
 
steelseth12Commented:
Use strtoupper() http://www.php.net/manual/en/function.strtoupper.php

On the receiving end

$code = strtoupper($_POST["code"]);
0
 
gamebitsCommented:
$code = $_POST['code'];

$code = strtoupper($code);
0
 
PeterdeBAuthor Commented:
bulls eye thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.