Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/03/2004, 20:31
Tidus_18
 
Fecha de Ingreso: enero-2004
Ubicación: En un lugar donde abunda la MaGiA
Mensajes: 98
Antigüedad: 20 años, 3 meses
Puntos: 0
Exclamación Pequeño error..

Hola a todos.., (Cuanto tiempo que no pasaba por aqui jeje)..

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>&nbsp;</td>
                  </tr>
                </table>
                <table width="50" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>&nbsp;</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>&nbsp;</td>
                  </tr>
                </table>
                <table width="50" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>&nbsp;</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&iacute; 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>&nbsp;</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&iacute; tu direcci&oacute;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>&nbsp;</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&iacute; el nombre por el que seras reconocido, y por el que entraras al Fushi&oacute;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>&nbsp;</td>
                  </tr>
                </table>
                <table width="450" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="200"><div align="center"><strong>Contrase&ntilde;a:</strong>
                        <table width="200" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><div align="center">(Pon aqu&iacute; tu contrase&ntilde;a para entrar en el Fushi&oacute;n News)</div></td>
                              </tr>
                          </table>
                    </div></td>
                    <td width="250"><div align="center">
                        <input name="contrase&ntilde;a" type="text" id="contrase&ntilde;a">
                    </div></td>
                  </tr>
                </table>
                <table width="50" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table>
                <table width="450" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="200"><div align="center"><strong>&iquest;Trabajas para otras webs?: </strong>                            
                        <table width="200" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><div align="center">(Pon aqu&iacute; si eres reportero de alguna otra web de Pok&eacute;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>&nbsp;</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">(&iquest;Tienes algo que decirnos al Respecto? &iquest; te gustaria comentar algo? pues ponlo aqu&iacute;)</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>&nbsp;</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>
__________________
Un buen foro_Para aprender PHP