0
$nome = $_POST['nome'];
$data = $_POST['data'];
$quantidade_car = strlen(trim($nome));
var dump($quantidade_car);
echo "$nome <br> $data <br> $quantidade_car";
<form action="resultado-formulario.php" method="POST">
<input name="nome" type="text" placeholder="Nome Completo">
<input name="data" type="date">
<button type="submit">Enviar</button>
</form>
Opa, thanks Alvaro Alves! perfect!
– Johnny Silva
If you have met the need, please mark as answer :D
– Alvaro Alves
Alvaro Alves, I have one more question, can you help me ?
– Johnny Silva
@Johnnysilva clear, I’m at your disposal
– Alvaro Alves
Thank you, your previous answer was great and helped me, but I have another question. This function is displaying the general input parameters, however I would like to separate the word inserted in the input and count the characters per word, I don’t know if you could understand.
– Johnny Silva
yes, I understand, a moment that I already edit the answer for you :D
– Alvaro Alves
@Edited Johnnysilva, if you have met the need, mark it as accepted answer
– Alvaro Alves
very good! Thanks again for the help! Orbigado xD
– Johnny Silva