Vale muchas gracias, ya esta, pero cuando recibo el email dice:
Cita: From:World Wide Web Owner (info@oran**.com)
Desde donde canvio eso? Pone el email del host y el titulo no se que es :S
Edito:
Cuando le doy ea enviar se queda en blanco :S esta bien?:
Cita: <form id="form1" name="form1" method="post" action="enviar.php">
<p>Nombre:<br />
<label>
<input name="nombre" type="text" id="nombre" />
</label>
<br />
Edad:<br />
<input name="telefono" type="text" id="telefono" />
<br />
Email:<br />
<input name="email" type="text" id="email" />
<br />
Motivo<br/>
<select name="motivo">
<option value="" selected>Seleccione un motivo</option>
<option value="1" >Ayuda y Soporte</option>
<option value="2" >Afiliacion</option>
<option value="3" >Ser Staff</option>
<option value="4" >Sugerencia</option>
<option value="5" >Otro</option>
</select>
<br/>
Mensaje:<br />
<textarea name="mensaje" id="mensaje"></textarea>
<br />
<label>
<input type="submit" name="Submit" value="Enviar Formulario" />
</label>
</p>
</form>
Cita: <?php
$mail='
[email protected]';
$nombre = $_POST['nombre'];
$telefono = $_POST['telefono'];
$email = $_POST['email'];
$mensaje = $_POST['mensaje'];
$thank="gracias.html";
$message = "
nombre:".$nombre."
telefono:".$telefono."
email:".$email."
mensaje:".$mensaje."";
if ($_POST[motivo] == "") {$motivo = "No Disponible";}
if ($_POST[motivo] == "1") {$motivo = "Ayuda y Soporte";}
if ($_POST[motivo] == "2") {$motivo = "Afiliacion";}
if ($_POST[motivo] == "3") {$motivo = "Ser Staff";}
if ($_POST[motivo] == "4") {$motivo = "Sugerencia";}
if ($_POST[motivo] == "5") {$motivo = "Otro";}
/*y en e mensaje agergas*/
$message = "
nombre:".$nombre."
telefono:".$telefono."
email:".$email."
mensaje:".$mensaje."";
motivo : "$motivo";
if (mail($mail,"Formulario de Consulta",$message))
Header ("Location: $thank" );
?>