Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2010, 01:41
roteta30
 
Fecha de Ingreso: mayo-2010
Mensajes: 5
Antigüedad: 14 años
Puntos: 0
AYUDA con formulario de contacto

Buenos dias, a ver si podeis ayudarme. He hecho un formulario de contacto que envia los datos por e-mail, y no me funciona :(. A ver que fallos le veis, porque no me da errores.


<?
if(!$_POST){
?>

<fieldset width="100%" height="100%" style="background-color:#f2f6fc;text-align:right;border:0px">

<h3 style="text-align:left">Información comercial</h3>

<table border="0" width="95%" align="center">

<form action="formulario.php" method="POST" enctype="text/plain" name="miform">

<tr><td>Empresa </td><td><input type="text" name="empresa" size="51" maxlength="40"></td>
</tr>
<tr><td>Contacto </td><td><input type="text" name="contacto" size="51" maxlength="40"></td>
</tr>
<tr><td>Cargo </td><td><input type="text" name="cargo" size="51" maxlength="40"></td>
</tr>
<tr><td>Actividad </td><td><input type="text" name="actividad" size="51" maxlength="40"></td>
</tr>
<tr><td>N* Empleados </td><td><input type="text" name="empleados" size="51" maxlength="3"></td>
</tr>
<tr><td>Dirección </td><td><input type="text" name="direccion" size="51" maxlength="25"></td>
</tr>
<tr><td>Población </td><td><input type="text" name="poblacion" size="51" maxlength="25"></td>
</tr>
<tr><td>Provincia </td><td><input type="text" name="provincia" size="51" maxlength="10"></td>
</tr>
<tr><td>Código Postal </td><td><input type="text" name="cod_postal" size="51" maxlength="5"></td>
</tr>
<tr><td>Teléfono </td><td><input type="text" name="telefono" size="51" maxlength="20"></td>
</tr>
<tr><td>Fax </td><td><input type="text" name="fax" size="51" maxlength="20"></td>
</tr>
<tr><td>E-mail </td><td><input type="text" name="email" size="51" maxlength="65"></td>
</tr>
<tr><td>Fab. Software actual </td><td><input type="text" name="fabricante" size="51" maxlength="80"></td>
</tr>
<tr><td>Deseo info. sobre: </td><td><input type="text" name="informacion" size="51" maxlength="80"></td>
</tr>
<tr><td>Comentarios </td><td><input type="text" name="comentarios" size="51" maxlength="250"></textarea></td>
</tr>
</table>

<br>

<table border="0" width="95%" align="center" style="text-align:left">
<tr>
<td width="4"><input type="checkbox" name="" value=""></td><td>Conozco y acepto las condiciones sobre Protección de datos.<br>
<a href="privacidad.php" target="_blank">Ver Política de Privacidad.</a></td>
<td align="center">

<input type="image" name="boton" src="IMAGENES/BOTONES/enviar.png" align="middle">
</td>

</form>

</tr>
</table>

</fieldset>

<?
}else{

$mail="[email protected]";

$empresa=$_POST['empresa'];
$contacto=$_POST['contacto'];
$cargo=$_POST['cargo'];
$actividad=$_POST['actividad'];
$empleados=$_POST['empleados'];
$direccion=$_POST['direccion'];
$poblacion=$_POST['poblacion'];
$provincia=$_POST['provincia'];
$postal=$_POST['cod_postal'];
$telefono=$_POST['telefono'];
$fax=$_POST['fax'];
$email=$_POST['e_mail'];
$fabricante=$_POST['fabricante'];
$informacion=$_POST['informacion'];
$comentarios=$_POST['comentarios'];


$message = "
Empresa:".$empresa."
Contacto:".$contacto."
Cargo:".$cargo."
Actividad:".$actividad."
Nº empleados:".$empleados."
Dirección:".$direccion."
Poblacion:".$poblacion."
Provincia:".$provincia."
Cod. Postal:".$cod_postal."
Telefono:".$telefono."
Fax:".$fax."
Email:".$email."
Fabricante actual:".$fabricante."
Deseo informacion sobre:".$informacion."
Comentarios:".$comentarios."";

mail($mail,"Formulario de Consulta",$message);

?>

A ver si encontrais algo, muchas gracias