Send Checkbox Data by PHPMAILER

Asked

Viewed 85 times

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?

  • But how do I include the filled checkbox for email HTML?

  • 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?

  • @Andersoncarloswoss updated the question

  • 1

    related https://answall.com/questions/31319/como-sendos-de-checkbox-para-uma-consulta-com-mysql?rq=1

  • 1

    https://answall.com/questions/69035/checkbox-e-phpmailer?rq=1

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.