Tengo una duda, tengo un formulario:
Código:
<form action="mailto:[email protected]" method="post" enctype:"multipart/form-data">
<table width="380" border="0" cellpadding="0" cellspacing="0" bgcolor="336666">
<tr>
<td height="20" > </td>
</tr>
<tr>
<td width="580" height="240" align="center" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="cuerpo">
<tr>
<td width="59%"> <div align="left"><strong>Nombre:</strong></div></td>
<td width="41%"><div align="left">
<input name="nombre" type="text" id="nombre" size="40">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>Apellidos:</strong></div></td>
<td><div align="left">
<input name="apellidos" type="text" id="apellidos" size="40">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>Empresa:</strong></div></td>
<td><div align="left">
<input name="empresa" type="text" id="empresa" size="40">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>Dirección:</strong></div></td>
<td><div align="left">
<input name="direccion" type="text" id="direccion" size="40">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>E-mail:</strong></div></td>
<td><div align="left">
<input name="email" type="text" id="email" size="40">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>Teléfono:</strong></div></td>
<td><div align="left">
<input name="telefono" type="text" id="telefono" maxlength="9">
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"><strong>Motivo de la consulta:</strong></div></td>
<td><div align="left">
<textarea name="consulta" cols="40" rows="4" wrap="VIRTUAL" id="consulta"></textarea>
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="left"></div></td>
<td> </td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
<tr align="center" valign="top">
<td><div align="right">
<input name="Submit" type="submit" class="boton" value="Enviar">
</div></td>
<td><div align="left">
<input name="Submit2" type="button" class="boton" value="Cancelar" onClick='location.replace("index.htm")'>
</div></td>
</tr>
<tr align="center" valign="top">
<td colspan="2"> </td>
</tr>
<tr align="center" valign="top">
<td colspan="2">
</td>
</tr>
<tr align="center" valign="top">
<td colspan="2" height="5"><div align="left"><img src="images/blank.gif" width="1" height="1"></div></td>
</tr>
</table></td>
</tr>
</table>
</form>
antes me llegaba el correo así
nombre=luis
apellidos=Tello
[email protected]
telefono=5423423
consulta=Hola.-
Deseamos tener mayor infomración sobre las actividades que realiza su empresa.
Pero modifiqué el código fuente y ahora me llega en un archivo adjunto (postdata.att) y el contenido me aparece todo seguido:
nombre=fdf&apellidos=asdf&empresa=asdf&direccion=a sdf&email=asdfa&telefono=asdfa&consulta=asdfas&Sub mit=Enviar
Un amigo me había dicho que el problema estaba en la forma en que lo enviaba (en el method o el enctype no me acuerdo muy bien), puse de negrita donde creo que está el problema. Muchas gracias