Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/07/2006, 03:33
Avatar de niconico
niconico
 
Fecha de Ingreso: enero-2006
Mensajes: 166
Antigüedad: 18 años, 3 meses
Puntos: 0
Problema con el envío de formularios

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" >&nbsp;</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&oacute;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&eacute;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>&nbsp;</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"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                
<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">&nbsp;</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