Problema con formulario!!!

Estado
No está abierto para más respuestas.
Mensajes
22
Puntuación de reacción
0
Hola genios de la web, necesito ayuda! Tengo un problema con formularios.Resulta que con uno formulario los msjs llegan a mi casilla del dominio,a cualquiera, mientras que con el otro no me llegan ! Y no puedo darme cuenta que es! Esto sin importar el php que ponga, tengo un archivo php básico para formulario con mail($para,$asunto,$mensaje,$header) , pero con uno me llegan los formularios y con otro no.
Este es el formulario que funciona :
<form action="planesauto.php" method="POST" name="form1" id="form1">
<table width="561" height="232" border="0">
<tr>
<td width="88">Tu nombre</td>
<td width="463"><input type="text" name="txtnom" id="txtnom" /></td>
</tr>
<tr>
<td>Tu correo</td>
<td><input type="text" name="txtemail" id="txtemail" /></td>
</tr>
<tr>
<td>¿Cómo nos encontraste?</td>
<td><label for="txtfuente"></label>
<input type="text" name="txtfuente" id="txtfuente" /></td>
</tr>
<tr>
<td>Consulta sobre el servicio</td>
<td><label for="txtcons"></label>
<textarea name="txtcons" id="txtcons" cols="45" rows="5"></textarea></td>
</tr>
</table>
<br />
<span style="text-align: center">
<input type="submit" name="button" id="button" value="Enviar" />
<input type="reset" name="button2" id="button2" value="Restablecer" />
</span>
</form>


Y ESTE ES EL QUE NO FUNCIONA :

<form action="analisis.php" method="POST" name="form1" target="new" id="form1">
<table width="500" border="0">
<tr>
<td height="62">Tu correo</td>
<td style="text-align: left"><label for="txtnom"></label>
<input type="text" name="txtnom" id="txtnom" /></td>
</tr>
<tr>
<td height="32">Tu página web</td>
<td style="text-align: left"><label for="txtcons"></label>
<input name="txtcons" type="text" id="txtcons" value="" size="40" /></td>
</tr>
</table>
<input type="submit" name="button" id="button" value="Solicitar informe" />
<input type="reset" name="button2" id="button2" value="Cancelar" />
</form>


Y OTROS TAMPOCO FUNCIONAN.

¿QUÉ ES LO QUE ESTÁ MAL? ¿QUÉ TIENE EL PRIMERO QUE NO TIENE EL SEGUNDO ?

MUCHÍSIMAS GRACIAS POR LEERME AMIGOS, REALMENTE VOY A AGRADECER SU AYUDA!

LISANDRO
 

Bleed

Diamante
Usuario de Bronce
Mensajes
2,408
Puntuación de reacción
1
Se me ocurre que pueda ser problema del target del segundo form, ya que no hay ningun atributo "target" valido para formularios, y ademas "new" tampoco se encuentra entre los traget names validos : Basic HTML data types

PD: Ademas de que el action es distinto en ambos formularios, en uno hay campos que no hay en el otro. Tal vez en el .PHP se compruebe si todos los campos fueron rellenados, y al encontrar alguno vacio no envie el email.
 
Última edición:
Mensajes
22
Puntuación de reacción
0
Agradezco tu respuesta ! Hoy mismo lo pruebo, muchísimas gracias Bleed!
Saludos!
 
Estado
No está abierto para más respuestas.
Arriba