Código:
ese es el codigo de mi formulario <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Nombre</title> </head> <body> <? if (!$HTTP_POST_VARS){ ?> <form action="formulario.php" method=post> <table border="0" width="100%" id="table1"> <tr> <td width="74"><font face="Tahoma" color="#800000">Nombre:</font></td> <td> <input type="text" name="Nombre" size="20"></td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">Apellido:</font></td> <td> <input type="text" name="Apellido" size="20"></td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">e-Mail:</font></td> <td> <input type="text" name="Mail" size="29"></td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">Edad:</font></td> <td> <input type="text" name="Edad" size="3"></td> </tr> <tr> <td width="74"> </td> <td> </td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">Colegio:</font></td> <td> </td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">Grado:</font></td> <td> </td> </tr> <tr> <td width="74"><font face="Tahoma" color="#800000">País:</font></td> <td><select size="1" name="Pais"> <option>Argentina</option> <option>Bolivia</option> <option>Chile</option> <option>Uruguay</option> </select></td> </tr> </table> <table cellpadding="0" cellspacing="0" width="908" height="19"> <tr> <td width="908" height="19"></td> </tr> </table> <table cellpadding="0" cellspacing="0" width="907"> <tr> <td height="25" valign="top"><font face="Tahoma" color="#800000">¿En qué área o áreas de la investigación te interesa participar?</font></td> </tr> </table> <div align="left"> <table cellpadding="0" cellspacing="0" width="907" height="19" align="left"> <tr> <td height="19" width="114" rowspan="2"> </td> <td height="19" width="793" rowspan="2" valign="top"> <font face="Tahoma"> <input type="checkbox" name="Encuesta1" value="ON"> Recabar datos<br> <input type="checkbox" name="Encuesta2" value="ON"> Experimentación<br> <input type="checkbox" name="Encuesta3" value="ON"> Elaboración de conclusiones<br> <input type="checkbox" name="Encuesta4" value="ON"> Estadísticas de resultado</font></td> </tr> </table> <p> </div> <p> </p> <table cellpadding="0" cellspacing="0" width="907"> <tr> <td height="25"><font face="Tahoma" color="#800000">Cuéntanos sobre que te gustaría investigar</font></td> </tr> </table> <table cellpadding="0" cellspacing="0" width="907"> <tr> <td height="30"> <textarea rows="10" name="Comentario" cols="45">Ingrese su comentario aquí</textarea></td> </tr> </table> <p><input type="submit" value="Enviar" name="B1"><input type="reset" value="Restablecer" name="B2"></p> </form> <? }else{ $cuerpo = "Formulario enviado\n"; $cuerpo .= "Nombre: " . $HTTP_POST_VARS["Nombre"] . "\n"; $cuerpo .= "Apellido: " . $HTTP_POST_VARS["Apellido"] . "\n"; $cuerpo .= "Email: " . $HTTP_POST_VARS["Mail"] . "\n"; $cuerpo .= "Edad: " . $HTTP_POST_VARS["Edad"] . "\n"; $cuerpo .= "Pais: " . $HTTP_POST_VARS["Pais"] . "\n"; $cuerpo .= "Encuesta: " . $HTTP_POST_VARS["Encuesta1"] . "\n"; $cuerpo .= "Encuesta: " . $HTTP_POST_VARS["Encuesta2"] . "\n"; $cuerpo .= "Encuesta: " . $HTTP_POST_VARS["Encuesta3"] . "\n"; $cuerpo .= "Encuesta: " . $HTTP_POST_VARS["Encuesta4"] . "\n"; $cuerpo .= "Comentario: " . $HTTP_POST_VARS["Comentario"] . "\n"; //mando el correo... mail("MIMAIL","Formulario recibido",$cuerpo); //doy las gracias por el envío ?> <script language="JavaScript" type="text/JavaScript"> window.location = 'CONFIRMACION.htm'; </script><? } ?> </body> </html>