Bueno pues como siempre, el Formulario.., por fin lo he conseguido, me lo envian a mi correo etc.., todo a la perfeccion escepto una cosa.., que cada vez que alguien carga la pagina de donde esta el formulario me envia un mail vacio, mas despues el que escriben, es decir, que al dia revivo unos 50 mails.., y encima casi todos vacios.., porque cuando alguien entra automaticamente me envia un mail.., y no se como arreglarlo.., espero que me ayudeis, por si acaso os pongo aqui el codigo del formulario..
Código PHP:
<?php
$destinatario="[email protected]";
$comentarios="Datos del solicitante" . "\n\n" ."Nombre: " . $nombre. "\n\n" . "E-Mail: " . $mail . "\n\n" . "Nick: " . $nick . "\n\n" . "Contraseña: " . $contraseña . "\n\n" . "¿Trabajas para otras webs?: " . $trabajas . "\n\n" . "Comentarios: " . "\n\n". $comentarios;
mail($destinatario,"Quiero ser Reportero de Genes Pokémon",$comentarios,"De:$mail");
?><table width="555" height="141" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<table width="555" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="../imagenes/bordes/centro%20pagina%20secciones/arriba_noticias.gif" width="555" height="80"></div></td>
</tr>
</table>
<table width="555" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../imagenes/bordes/centro pagina/medio.jpg"><div align="center">
<form name="reportero" method="post" action="reportero.php">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><strong>Ser Reportero </strong></div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">Si quieres que todo el mundo te reconozca mediante reportero, no dudes en enviarnos este Formulario. En caso de que seas aceptado, tienes que ser responsable y cumplir las normas que se te enviaran al correo.</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>Nombre:</strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(Pon aquí tu nombre real) </div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<input name="nombre" type="text" id="nombre">
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>E-Mail:</strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(Pon aquí tu dirección de E-Mail para poder contactar contigo)</div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<input name="mail" type="text" id="mail">
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>Nick:</strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(Pon aquí el nombre por el que seras reconocido, y por el que entraras al Fushión News)</div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<input name="nick" type="text" id="nick">
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>Contraseña:</strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(Pon aquí tu contraseña para entrar en el Fushión News)</div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<input name="contraseña" type="text" id="contraseña">
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>¿Trabajas para otras webs?: </strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(Pon aquí si eres reportero de alguna otra web de Pokémon)</div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<input name="trabajas" type="text" id="trabajas">
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><div align="center"><strong>Comentarios:</strong>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">(¿Tienes algo que decirnos al Respecto? ¿ te gustaria comentar algo? pues ponlo aquí)</div></td>
</tr>
</table>
</div></td>
<td width="250"><div align="center">
<textarea name="comentarios" cols="16" id="comentarios"></textarea>
</div></td>
</tr>
</table>
<table width="50" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="225"><div align="center">
<input type="submit" name="Submit" value="Enviar">
</div></td>
<td width="225"><div align="center">
<input name="borrar" type="reset" id="borrar" value="Restablecer">
</div></td>
</tr>
</table>
</form>