Good afternoon, I have this array that comes from $ form variables
Array
(
[nome] => 765hygfy
[data_nascimento] => ftyftyf
[email] => [email protected]
[sexo] => Feminino
[rg] => ytfytfyt
[cpf] => fytfty
[telefone_residencial] => fty
[telefone_celular] => fyt
[telefone_recado] =>
[cep] => fytf
[estado] => MS
[cidade] => fytfytf
[bairro] => ytf
[logradouro_rua] => ftyf
[numero] => tyfyt
[complemento] => fty
[referencia] => fytf
[onde_conheceu] => FaceBook
[revendeu_outras_marcas] => Não
[quais] => ytftyf
[horario_de_contato] => Manhã
)
They are coming from a form like the names in this pattern
form[nome]
form[email]
And so it goes
What I need to do is php read this array by printing the key after the value I have already made several foreach to a for and return blank.
My foreach
foreach($_POST['form'] as $key => $value){
$nome = arrumanome($key);
$msg.= $nome.": ".$value."<br>";
}
It returns only this aki
:
:
:
:
:
:
:
: