enviar formulario
He creao un formulario pero no se me envian al correo los datos, estará mal, pero el que, por favor ayudadme, este es el codigo del formulario:
<form action="envia_form_php.php" method=post>
<dd>
Nombre*: <input type='text' name='nombre' size='15'>
Apellidos: <input type='text' name='apellidos' size='50'><br>
<br>
<dd>E-mail*: <input type='text' name='e-mail' size='30'>
</dd></dd>
Sistema Operativo*: <select name=variable>
<option>Linux
<option>Windows 95
<option>Windows 98/ME
<option>Windows 2000/XP
<option>Otro
</option>
</select>
<br>
<br>
<br>
<dd>Señala detalladamente tu problema:<br><br>
<dd><dd><textarea rows=15 cols=60></textarea><br><br>
</dd></dd>
<input type="HIDDEN" name="EmailVar" size="-1" value="Nombre,Apellidos,E-mail,Sistema Operativo,textfield">
<input type="HIDDEN" name="EmailAdr" size="-1" value="[email protected]">
<input type="HIDDEN" name="EmailDone" size="-1" value="http://www.iespana.es/mikanumberone/confirm.htm">
<input type="HIDDEN" name="EmailSujet" size="-1" value="Formulario">
<dd><dd><dd><dd><input type="SUBMIT" name="Submit" value="Enviar Formulario">
<input type='reset' value='Borrar Campos'>
</form>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviadon";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "n";
$cuerpo .= "E-mail: " . $HTTP_POST_VARS["e-mail"] . "n";
$cuerpo .= "Apellidos: " . $HTTP_POST_VARS["apellidos"] . "n";
$cuerpo .= "E-mail: " . $HTTP_POST_VARS["coment"] . "n";
//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);
//doy las gracias por el envÃo
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>
</dd>
<form action="envia_form_php.php" method=post>
<dd>
Nombre*: <input type='text' name='nombre' size='15'>
Apellidos: <input type='text' name='apellidos' size='50'><br>
<br>
<dd>E-mail*: <input type='text' name='e-mail' size='30'>
</dd></dd>
Sistema Operativo*: <select name=variable>
<option>Linux
<option>Windows 95
<option>Windows 98/ME
<option>Windows 2000/XP
<option>Otro
</option>
</select>
<br>
<br>
<br>
<dd>Señala detalladamente tu problema:<br><br>
<dd><dd><textarea rows=15 cols=60></textarea><br><br>
</dd></dd>
<input type="HIDDEN" name="EmailVar" size="-1" value="Nombre,Apellidos,E-mail,Sistema Operativo,textfield">
<input type="HIDDEN" name="EmailAdr" size="-1" value="[email protected]">
<input type="HIDDEN" name="EmailDone" size="-1" value="http://www.iespana.es/mikanumberone/confirm.htm">
<input type="HIDDEN" name="EmailSujet" size="-1" value="Formulario">
<dd><dd><dd><dd><input type="SUBMIT" name="Submit" value="Enviar Formulario">
<input type='reset' value='Borrar Campos'>
</form>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviadon";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "n";
$cuerpo .= "E-mail: " . $HTTP_POST_VARS["e-mail"] . "n";
$cuerpo .= "Apellidos: " . $HTTP_POST_VARS["apellidos"] . "n";
$cuerpo .= "E-mail: " . $HTTP_POST_VARS["coment"] . "n";
//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);
//doy las gracias por el envÃo
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>
</dd>