pongo esto y me sale que hay un error en la ultima fila y la ultima fila es esto ?>
ya se que la funcion mail() no funciona en mi@.
<?
if ($HTTP_POST_VARS["asunto"]==""){
?>
<form action="formulario.php?accion=enviar" method="post">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr><td>RELLENA TODOS LOS CAMPOS SINO NO PODRA SER ENVIADO</td></tr>
<tr><td>De: <input type="text" name="from" value="[email protected]" size="30"></td></tr>
<tr><td>Asunto: <input type="text" name="asunto" size="30"></td></tr>
<tr><td>Comentario: <textarea rows="4" name="comentario"></textarea></td></tr>
<tr><td>Para: <input type="radio" checked name="email">SEK
<input type="radio" name="email">Simon
<input type="radio" name="email">etc</td></tr>
</table>
</form>
<?
}else{
if ($HTTP_POST_VARS["comentario"]==""){
?>
<form action="formulario.php?accion=enviar" method="post">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr><td>RELLENA TODOS LOS CAMPOS SINO NO PODRA SER ENVIADO</td></tr>
<tr><td>De: <input type="text" name="from" value="[email protected]" size="30"></td></tr>
<tr><td>Asunto: <input type="text" name="asunto" size="30"></td></tr>
<tr><td>Comentario: <textarea rows="4" name="comentario"></textarea></td></tr>
<tr><td>Para: <input type="radio" checked name="email">SEK
<input type="radio" name="email">Simon
<input type="radio" name="email">etc</td></tr>
</table>
</form>
<?
}elseif ($HTTP_POST_VARS["email"]==""){
?>
<form action="formulario.php?accion=enviar" method="post">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr><td>RELLENA TODOS LOS CAMPOS SINO NO PODRA SER ENVIADO</td></tr>
<tr><td>De: <input type="text" name="from" value="[email protected]" size="30"></td></tr>
<tr><td>Asunto: <input type="text" name="asunto" size="30"></td></tr>
<tr><td>Comentario: <textarea rows="4" name="comentario"></textarea></td></tr>
<tr><td>Para: <input type="radio" checked name="email">SEK
<input type="radio" name="email">Simon
<input type="radio" name="email">etc</td></tr>
</table>
</form>
<?
}elseif ($HTTP_POST_VARS["from"]==""){
?>
<form action="formulario.php?accion=enviar" method="post">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr><td>RELLENA TODOS LOS CAMPOS SINO NO PODRA SER ENVIADO</td></tr>
<tr><td>De: <input type="text" name="from" value="[email protected]" size="30"></td></tr>
<tr><td>Asunto: <input type="text" name="asunto" size="30"></td></tr>
<tr><td>Comentario: <textarea rows="4" name="comentario"></textarea></td></tr>
<tr><td>Para: <input type="radio" checked name="email">[email protected]<br>
<input type="radio" name="email">[email protected]<br>
<input type="radio" name="email">[email protected]</td></tr>
</table>
</form>
<?
}else{
?>
<?
mail("$HTTP_POST_VARS[email]",
"<br>Asunto: $HTTP_POST_VARS[asunto]",
"De: $HTTP_POST_VARS[from]",
"<br>Comentario: $HTTP_POST_VARS[comentario]");
echo "De: $HTTP_POST_VARS[from]";
echo "Asunto: $HTTP_POST_VARS[asunto]";
echo "Comentario: $HTTP_POST_VARS[comentario]";
echo "Para: $HTTP_POST_VARS[email]";
?>
<?
}
?>