Tengo una duda con un formulario que estoy utilizando en mi website, el formulario funciona perfecto pero ahora quiero agregar varias opciones con "checkbox" y no logro que me imprima los datos en el correo que se manda una ves que le damos click al boton de submit, dejo el codigo html y php para que me ayuden a resolverlo, muchas gracias de antemano.
EL FORM
Código HTML:
<form action="gracias-coti.php" method="post" name="contact" target="_self" id="contact" > <span id="form"> <ol> <li> <span id="sprytextfield1"> <label for="Nombre">Su Nombre completo:</label><br/> <input type="text" name="Nombre" id="Nombre"/><br/> <span class="textfieldRequiredMsg">VALOR REQUERIDO</span></span> </li> <li> <span id="sprytextfield2"> <label for="Email">Correo Electrónico</label> <br/> <input type="text" name="Email" id="Email" /> <br/> <span class="textfieldRequiredMsg">VALOR REQUERIDO</span><span class="textfieldInvalidFormatMsg">FORMATO INVALIDO</span></span> </li> <li> <span id="sprytextfield4"> <label for="Empresa">Empresa</label><br/> <input type="text" name="Empresa" id="Empresa" /><br/> <span class="textfieldRequiredMsg">VALOR REQUERIDO</span></span> </li> <li> <span id="sprytextfield5"> <label for="Telefono">Telefono / Ejemplo: 0000-0000</label><br/> <input type="text" name="Telefono" id="Telefono" /><br/> <span class="textfieldRequiredMsg">VALOR REQUERIDO</span><span class="textfieldInvalidFormatMsg">FORMATO INVALIDO</span></span> </li> <li> <span id="sprytextarea1"> <label for="Productos">Brevemente mencione los productos y servicios que ofrece:</label> <br/> <textarea name="Productos" id="Productos" cols="45" rows="5"></textarea><br/> <span class="textareaRequiredMsg">VALOR REQUERIDO</span></span> </li> <li> <span id="sprycheckbox1"> <label for="servicios">Qué servicios requiere?</label> <br/><br/> <table width="99%" border="0" cellspacing="1" cellpadding="1"> <tr> <th width="37%" align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" value="papeleria" id="papeleria"/> <label for="papeleria">Papeleria Corporativa</label> </th> <th width="33%" align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="volantes" value="volantes" /> <label for="volantes">Volantes</label> </th> <th width="30%" align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="brochures" value="brochures" /> <label for="brochures">Brochures</label> </th> </tr> <tr> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="afiches" value="afiches"/> <label for="afiches">Afiches</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="revistas" value="revistas"/> <label for="revistas">Revistas</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="rotulos" value="rotulos"/> <label for="rotulos">Rótulos o vallas</label> </th> </tr> <tr> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="discos" value="discos"/> <label for="discos">Cd's Interactivos</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="animacion" value="animacion"/> <label for="animacion">Animacion 2D/3D</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="fotografia" value="fotografia"/> <label for="fotografia">Fotografia</label> </th> </tr> <tr> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="hosting" value="hosting"/> <label for="hosting">Hosting</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="website" value="website"/> <label for="website">Website</label> </th> <th align="left" valign="middle" scope="col"> <input type="checkbox" name="check[]" id="logotipo" value="logotipo"/> <label for="logotipo">Logotipo</label> </th> </tr> </table> <span class="checkboxMinSelectionsMsg">Seleccione al menos una opción</span> </span> </li><br/> <li> <span id="sprytextarea2"> <label for="detalle">Detalle del Trabajo que solicita:</label><br/> <textarea name="detalle" id="detalle" cols="45" rows="5"></textarea><br/> <span class="textareaRequiredMsg">Valor Requerido</span></span> </li> <li> <span id="sprytextfield6"> <label for="presupuesto">Su presupuesto disponible para este proyecto:</label> <br/> <input type="text" name="presupuesto" id="presupuesto" value="US$ " /> <br/> <span class="textfieldRequiredMsg">Valor Requerido</span> <span class="textfieldInvalidFormatMsg">Formato Invalido</span> </span> </li> <li> <span id="sprytextfield3"> <label for="spam">Anti-spam: 2+5</label><br/> <input type="text" name="spam" id="spam" /><br/> </span> </li> <input name="formName" type="hidden" id="formName" value="contact" /> </ol> <div align="left" style="margin:10px 0 0 25px;"> <input name="sendContact" type="submit" id="sendContact" value="SOLICITAR COTIZACIÓN" class="btn"/> </div> </span> </form>
action="gracias-coti.php"
Código PHP:
<?
if($_POST) {
error_reporting(E_ALL);
ini_set('display_errors',0);
require_once('email.inc.php');
extract($_POST,EXTR_OVERWRITE);
$form_name = isset($_POST['formName'])?$_POST['formName']:null;
if($form_name) {
# 1 EL FORM autorespuesta
$subject = "Servicio al Cliente";
$html_subject = "Su información fue recibida correctamente, nos pondremos en contacto con ud lo antes posible.<br/><br/>
;
$to_email = "$Email";
send_mail($to_email, $subject, $html_subject);
send_mail($emailAddress, $subject, $html_message);
# CONFIRMACION AL PROPIO CORREO al cliente
$subject = "Cotizacion - Desde WebSite";
$html_subject = "
<b>Nombre:</b> $Nombre <br/><br/>
<b>E-mail:</b> $Email <br/><br/>
<b>Empresa:</b> $Empresa <br/><br/>
<b>Telefono:</b> $Telefono <br/><br/>
<b>Servicios que ofrece:</b> $Productos<br/><br/>
<b>Servicios que requiere de Grafika:</b>
<br/><br/>
<b>Detalle del Trabajo que solicita:</b> $detalle<br/><br/>
<b>Presupuesto disponible:</b> $presupuesto<br/><br/>
";
$to = "blablabla@gmail.com";
$to_email = "blablabla@gmail.com";
send_mail($to_email, $subject, $html_subject);
}// End If $formName
}
?>
Espero las respuestas..
![Cool](http://static.forosdelweb.com/fdwtheme/images/smilies/cool.png)