Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/01/2006, 15:30
moverboost
 
Fecha de Ingreso: septiembre-2004
Mensajes: 118
Antigüedad: 19 años, 7 meses
Puntos: 1
Exclamación problema con un formulario

tengo un formulario en HTML que corre un archivo en PHP, mire el codigo un monton de veces y no puedo detectar porque no lo envia los correos, espero me den una manito, gracias:
aqui les dejo el codigo de los 2 archivos:

FORMULARIO.HTML

<html>
<head>
<meta>
<title>|| Ghost - Solutions ||</title>
<style type="text/css">
<!--
.Estilo2 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; font-size: 12px; }
-->
</style>
</head>

<body>
<table border="5" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="79%" id="AutoNumber1" height="454">
<tr>
<td width="50%" bgcolor="#E0F0FA"><span class="Estilo10">Nombre de Usuario:</span></td>
<td width="50%" height="22" bgcolor="#E0F0FA"><input name="Nombre de Usuario" type="text" id="Nombre de Usuario" size="44" maxlength="20"></td>
</tr>
<tr>
<td width="50%" bgcolor="#E0F0FA"><span class="Estilo10">Contrase&ntilde;a:</span></td>
<td width="50%" height="22" bgcolor="#E0F0FA"><input name="Contrase&ntilde;a" type="password" id="Contrase&ntilde;a" size="44" maxlength="20"></td>
</tr>
<tr>
<td width="50%" bgcolor="#E0F0FA"><span class="Estilo10">Dominio:</span></td>
<td width="50%" height="22" bgcolor="#E0F0FA"><input name="Dominio" type="text" id="Dominio" value="www." size="44" maxlength="25"></td>
</tr>
<tr>
<td bgcolor="#E0F0FA"><span class="Estilo10">Tipo de Soporte :</span></td>
<td height="22" bgcolor="#FFFFFF"><select name="Menu" id="Menu">
<option>----------------SELECCIONE---------------</option>
<option>Audio Streaming</option>
<option>Servidores Dedicados</option>
<option>Servidores de Juegos</option>
<option>Web Hosting</option>
</select></td>
</tr>
<tr>
<td width="50%" bgcolor="#E0F0FA"><span class="Estilo10">E-mail de Contacto:</span></td>
<td width="50%" height="22" bgcolor="#E0F0FA"><input name="Mail de Contacto" type="text" id="Mail de Contacto" size="44" maxlength="35"></td>
</tr>
<tr>
<td width="50%" height="18" bgcolor="#E0F0FA"><span class="Estilo10">Descripcion de su Consulta: </span></td>
<td width="50%" height="22" rowspan="2"><span class="Estilo2">
<textarea name="Consulta" cols="30" rows="20" id="Consulta">Su Consulta aqui.</textarea>
</span></td>
</tr>
<tr>
<td width="50%" height="9" bgcolor="#E0F0FA"><p>&nbsp;</p>
<p>&nbsp;</p>
<p></td>
</tr>
<tr>
<td width="50%" height="19" bgcolor="#E0F0FA"><input name="B1" type="submit" class="Estilo2" style="float: right" value="Enviar pedido de Soporte"></td>
<td width="50%" height="19" bgcolor="#E0F0FA">&nbsp;</td>
</tr>
</table>
</body>

</html>


FORMULARIO.PHP

<title>|| Ghost - Solutions ||</title><?php
/* Variables de configuración */

$de = '[email protected]'; // Remitente del mensaje
$para = '[email protected]'; // Destinatario del mensaje
$asunto = '"PEDIDO de SOPORTE"'; // Asunto del mensaje
$pagina_final = 'Exitoso.html'; // Página a redirigir tras el envío

/* Fin configuración */

if ($_POST) { $campos = $_POST;
} else { die('ERROR: Formulario sin datos.');
}

while ( list($key,$val) = each($campos) ) {
$message.= "$key: $val\r\n";
}

mail($para,$asunto,$message,"From: $de","-f$de");

header("Location: $pagina_final");
?>

bueno eso es todo muchachos, desde ya gracias por la ayuda