0
Good morning to everyone, I would like to know if I am receiving the values of my form correctly and sending by email using an array to list questions and answers of the poll.
follows the code.
 $meuArray = array( 0 => "$pergunta_principal", 1 => "$primeira_opcao", 2 => "$segunda_opcao", 3 => "$terceira_opcao", 4 => "$quarta_opcao");
                while($lista array($meuArray)) {
              .'<b>'. echo $lista['pergunta_principal'];.'<br/><br/>
                <b>Primeira Opção  R:</b> '.echo $lista['primeira_opcao'];.'<br/><br/>
                <b>Segunda Opção   R:</b> '.echo $lista['segunda_opcao'];.'<br/><br/>
                <b>Terceira Opção  R:</b> '.echo $lista['terceira_opcao'];.'<br/><br/>
                <b>Quarta Opção  R:</b> '.echo $lista['quarta_opcao'];.'<br/><br/>
                '
                } //fim do while
1 - I don’t understand the use of while. 2 - There are many errors there, you are concatenating a string with the echo function, you are wrong. 3 - Improve the indentation. 4 - Use double quotes and throw the variables directly. 5 - Where is the code to send the email?
– Clayderson Ferreira
I’ll post it all ..
– João Lucas Chaves