Answer the question
In order to leave comments, you need to log in
How to enter text from PHP into MySQL database in capital letters?
There is a form with a field number , in which text numbers + letters are entered
there is a simple INSERT query
<input name="number" type="text">
$text = strtoupper($_POST['number']);
$text = mb_strtoupper($_POST['number']);
$query='INSERT...'
Answer the question
In order to leave comments, you need to log in
Feel free to read the PHP documentation:
www.php.net/manual/en/function.mb-strtoupper.php
Here's an example from there:
<?php
$str = "Mary Had a Little Lamb and She LOVED It Very Much";
$str = mb_strtoupper($str);
echo $str; // Output MARY HAD A LITTLE LAMB AND SHE LOVED IT SO MUCH
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question