Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2004, 07:19
Juan_Vzla
 
Fecha de Ingreso: abril-2004
Ubicación: Caracas
Mensajes: 4
Antigüedad: 20 años
Puntos: 0
Pregunta Problema con la funcion mail, Ayudenme!!!

Buenos Dias, Tengo una problema con la funcion mail ,
El problema es que si en el form dejo espacios en blanco automaticamente solo envia lo que leyo antes de dicho espacio.
ejemplo:
si coloco "La Casa es bonita" solo envia al mail "La" el resto de la oracion no la toma en cuenta, asi pasa con todas las casillas del form que estoy utilizando.


tengo dos archivos, uno que se llama paso2 y otro que se llama completado.

el archibo completado tiene la funcion mail, este es el codigo:

<?php

$agregar =" Modalidad: ".$_POST['opcion']."
Nombre: ".$_POST['Nombre']."
Apellido: ".$_POST['Apellido']."
Cedula: ".$_POST['CI']."
Direccion: ".$_POST['direccion']."
Telefono Oficina: ".$_POST['oficina']."
Telefono Hab.: ".$_POST['hab']."
Telefono Celular: ".$_POST['celular']."
Telefono Fax: ".$_POST['fax']."
Email: ".$_POST['email']."
Como ayudar?: ".$_POST['ayuda']." ";

mail("[email protected]", "NUEVO ".$_POST['opcion'].": ".$_POST['Nombre']." ".$_POST['Apellido']." ", $agregar);

echo ' SU SOLICITUD A SIDO ENVIADA CON EXITO, HAGA CLICK <a href="h02.htm">AQUI</a> PARA VOLVER';


?>

y el archivo paso tiene este codigo:

<table width="75%">
<!--DWLayoutTable-->
<tr>
<td width="117" height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Nombre</font></td>
<td valign="top"><?php echo $_POST['Nombre'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Apellido</font></td>
<td valign="top"><?php echo $_POST['Apellido'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">C.I.</font></td>
<td valign="top"><?php echo $_POST['CI'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Direccion</font></td>
<td valign="top"><?php echo $_POST['direccion'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Telef.
Oficina</font></td>
<td valign="top"><?php echo $_POST['oficina'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Telef.
Habitacion</font></td>
<td valign="top"><?php echo $_POST['hab'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Telef
Celular</font></td>
<td valign="top"><?php echo $_POST['celular'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Telef.
Fax</font></td>
<td valign="top"><?php echo $_POST['fax'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Email</font></td>
<td valign="top"><?php echo $_POST['email'];?>&nbsp;</td>
</tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Ayuda</font></td>
<td valign="top"><?php echo $_POST['ayuda'];?>&nbsp;</td>
</tr>
<tr>
<tr>
<td height="22" valign="top"><font size="2" face="Courier New, Courier, mono">Modalidad</font></td>
<td valign="top"><?php echo $_POST['opcion'];?>&nbsp;</td>
</tr>
<tr>
<td height="35" valign="top"> <div align="right"> </div></td>
<td valign="top"> <div align="left">
<input type="submit" name="Aceptar" value="Registrar">
</div></td>
</tr>
</table>


De verdad necesito ayuda, necesito saber donde esta el problema
gracias de ante Mano

mi email es [email protected]

Juan_Vzla