0
I have a form, and I had to include a field in checkbox, how do I send this information by email?
HTML
<form class="form" method="post">
<div class="visitenosCheckboxItem">
<input class="css-checkbox" id="checkboxInstitucional" name="checkboxForm[]" type="checkbox">
<label class="css-label" for="checkboxInstitucional">Institucional</label>
</div>
<div class="visitenosCheckboxItem">
<input class="css-checkbox" id="checkboxModeloGestao" name="checkboxForm[]" type="checkbox">
<label class="css-label" for="checkboxModeloGestao">Modelo de Gestão</label>
</div>
<div class="visitenosCheckboxItem">
<input class="css-checkbox" id="checkboxPlanejamentoEstrategico" name="checkboxForm[]" type="checkbox">
<label class="css-label" for="checkboxPlanejamentoEstrategico">Planejamento Estratégico</label>
</div>
<input type="submit" class="btn-enviar" name="enviar" value="Enviar">
The HTML I’m sending goes inside:
$mail->Body = '';
Can use
$_POST["checkboxForm"]
to get the values and use the Phpmailer to send the email. What have you tried to do?– Woss
But how do I include the filled checkbox for email HTML?
– Felipe Viero Goulart
It depends on what the body of the email will look like. What have you tried to do? And what do you want to do?
– Woss
@Andersoncarloswoss updated the question
– Felipe Viero Goulart
related https://answall.com/questions/31319/como-sendos-de-checkbox-para-uma-consulta-com-mysql?rq=1
– user60252
https://answall.com/questions/69035/checkbox-e-phpmailer?rq=1
– user60252