Buenas tengo un problema con el envio de variables POST de un formulario a un correo, son dos archivos el formulario.html y enviar.php aki les copio el codigo de formulario.html
<html>
<head>
<title>Solicitud de Material</title>
<script type="text/javascript">
var hpc = new Array("Victor Ojeda")
var msa = new Array("Jose farias")
var hdl = new Array("Gilmer Henriquez")
var ha = new Array("Julian Chavez")
var hjm = new Array("Samuel Doctor")
var hlo = new Array("Xavie Quintana")
var hcm = new Array("Sixto Caroni")
var hsc = new Array("Sixto Caroni")
var almacen = new Array("Almacen")
function loadList(which) {
var theList = eval(which);
document.theForm.team.options.length = theList.length;
for (i=0; i<theList.length; i++) {
document.theForm.team.options[i] = new Option(theList[i], theList[i]);
}
}
function resetLists() {
loadList("hpc");
document.theForm.league.options[0].selected = true;
}
window.onload = resetLists;
</script>
</head>
<body>
<table width="600" border="1">
<tr>
<td><div align="center"><strong>Requisicion de Materiales</strong></div></td>
</tr>
</table>
<table width="600" border="1">
<tr>
<td width="260"><strong>Fecha de Pedido</strong> (<em>La entrega sera efectuada 7 dias despues de la solicitud</em>) </td>
<td width="224"><script languaje="JavaScript">
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Juev es","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Ju nio","Julio","Agosto","Septiembre","Octubre","Novi embre","Diciembre")
document.write("<strong><small><font color='000000' face='Arial'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></small></strong>")
</script>
</td>
</tr>
</table>
<table width="600" border="1">
<tr>
<td>
Obra Solicitante:
<select name="league" onchange="loadList(this.options[this.selectedIndex].value)" size="1">
<option value="hpc">Hospital Perez Carreno</option>
<option value="msa">Maternidad Santa Ana</option>
<option value="hdl">Hospital Domingo Luciani</option>
<option value="ha">Hospital Algodonal</option>
<option value="hjm">Hospital JM de los Rios</option>
<option value="hlo">Hospital Luis Ortega Porlamar</option>
<option value="hcm">Hospital Central de Maracay</option>
<option value="hsc">Hospital de San Carlos</option>
<option value="almacen">Almacen</option>
</select>
Encargado:
<select name="team" size="1"></select>
</form> </td>
</tr>
</table>
<table width="600" border="1">
<tr>
<td width="398"><div align="center"><strong>Descripcion del Material</strong></div></td>
<td width="89"><div align="center"><strong>Cantidad</strong></div></td>
<td width="91"><div align="center"><strong>Unidad</strong></div></td>
</tr>
</table>
<table width="600" border="1">
<tr>
<td width="401"><input type="text" size="60" name="pedido1" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant1" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad1" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido2" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant2" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad2" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido3" class="text" value="" maxlength="60" maxsize="60" /></td>
<td width="88"><input type="text" size="9" name="cant3" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad3" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido4" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant4" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad4" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido5" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant5" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad5" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido6" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant6" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad6" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido7" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant7" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad7" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido8" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant8" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad8" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
<tr>
<td width="401"><input type="text" size="60" name="pedido9" class="text" value="" maxlength="60" maxsize="60" /> </td>
<td width="88"><input type="text" size="9" name="cant9" class="text" value="" maxlength="9" maxsize="9" /> </td>
<td width="89"><input type="text" size="9" name="unidad9" class="text" value="" maxlength="9" maxsize="9" /> </td>
</tr>
</table>
<form action="ipse.com.ve/enviar.php" method="post" name="form">
<input type="submit" class="btn" value="Enviar" />
</form>
</body>
</html>