Retroceder   Foros del Web > Diseño de Sitios web > (X)HTML

Respuesta
 
Herramientas Desplegado
Antiguo 19-may-2006, 08:47   #1 (permalink)
canalnastic está en el buen camino
 
Fecha de Ingreso: febrero-2003
Ubicación: Tarragona
Mensajes: 97
Problema con un formulario

Hola, tengo un formulario en mi página web que iba a la perfección , pero por algo que desconozco ha dejado de funcionar sin haber tocado nada.

Me dices esto:
location.href = 'respuestacat.html'; "; $asunto = "Auto-Respuesta de TU PAGINA"; $mensaje = "Saludos ".$nomb.", Gracias por cONTACTARNOS. Gracias, TU DOMINIO.com"; mail($mail,$asunto,$mensaje, "FROM:TUCORREO@TUDOMINIO.com"); } ?>

pero no entiendo que puede ser, además ya digo, iba bien. estaba diseñado para devolver un mensaje de respuesta en la misma web y que además el contenido del formulario fuese a parar a mi correo.

A ver si alguien me puede ayudar porfavor.

La página es: http://www.canalnastic.com/2006/nast...ormulario.html

Muchas gracias
canalnastic está desconectado   Responder Citando
Antiguo 19-may-2006, 10:00   #2 (permalink)
Colaborador
PatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy pronto
 
Avatar de PatomaS
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.393
Alegría

Hola

Al parecer estás usando php o asp, lo que ocurre, es que tienes más escrito el código.

Revisa las aperturas y cierres de los bloques de código y las zonas de html.

Felicidad
__________________
De vuelta por aquí, más o menos

¡ hey, hou, hou, hey !
PatomaS está desconectado   Responder Citando
Antiguo 20-may-2006, 03:50   #3 (permalink)
canalnastic está en el buen camino
 
Fecha de Ingreso: febrero-2003
Ubicación: Tarragona
Mensajes: 97
No consigo encontrar el problema, pego el código completo a ver si alguien me puede ayudar, gracias


<html>
<head>
<style>
BODY {
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #333333;
scrollbar-3dlight-color: #333333;
scrollbar-darkshadow-color: #999999;
scrollbar-shadow-color: #999999;
scrollbar-arrow-color: #c50f0c;
scrollbar-track-color: #ffffff;
}
</style>
<script>
var enlace="#c50f0c";
var sobrenlace="#000000";
function iluminar(capital){
document.getElementById(capital).style.color=sobre nlace;
}
function oscurecer(capital){
document.getElementById(capital).style.color=enlac e;
}
</script>
<style>
a{
color:#333333;
text-decoration:none;
}
</style>

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#ffffff" scroll="auto" text="#000000" topmargin="8">
<div align="center"><?



if (!$HTTP_POST_VARS){
?> <form action='formulario.html' method="post" name="form" id="form" onsubmit="return validate(this);" ENCTYPE="multipart/form-data"><table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr> <td width="5%" height="9"><img src="formulariotit.jpg" width="89" height="36"></td><td width="45%" height="9">&nbsp;</td><td height="50%" width="50%">
<div align="right"></div></td></tr> </table><table width="98%" border="1" cellspacing="0" cellpadding="0" bgcolor="ffffff" bordercolor="660000" ALIGN="CENTER">
<tr> <td height="100"> <div align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td height="2">&nbsp;</td><td height="2"> <div align="right"></div></td></tr> </table></div><table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" topmargin="0" bordercolor="#666666" height="8">
<tr> <td height="100"> <p align="left"><FONT COLOR="#000000" FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Nombre:<BR><INPUT TYPE="text" NAME="nombre" SIZE="50"><BR>Nick
(foro de canalnastic.com):<BR><INPUT TYPE="text" NAME="nickforo"><BR>Nick (chat
#nastic de IRC): <BR><INPUT TYPE="text" NAME="nickchat"> <BR>Canales de IRC que
frecuentas: <BR><INPUT TYPE="text" NAME="canales" SIZE="80"><BR>Fecha de nacimiento:
<BR><INPUT TYPE="text" NAME="fecha"><BR>Lugar de nacimiento: <BR><INPUT TYPE="TEXT" NAME="lugar"><BR><BR>Messenger:
<BR><INPUT TYPE="text" NAME="messenger"><BR>Yahoo Messenger:<BR><INPUT TYPE="text" NAME="yahoo"><BR>E-mail
habitual:<BR><INPUT TYPE="text" NAME="mail"> <BR>Marca la casilla si aceptas hacer
p&uacute;blicas en la web las direcciones de correo anteriores. <INPUT TYPE="checkbox" NAME="aceptacion" VALUE="checkbox"><BR><BR>Aficiones:
<BR><TEXTAREA NAME="aficiones" ROWS="2" COLS="80" WRAP="VIRTUAL"></TEXTAREA><BR><BR>&iquest;En
que lugar del estadio te sit&uacute;as? <BR>Gol Sur&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="sur">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gol
Norte&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="norte">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tribun a&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="tribuna">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Preferente&nbsp;&nbs p;<INPUT TYPE="radio" NAME="p" VALUE="preferente">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;O tros&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="otros"></FONT></p><p align="left"><FONT COLOR="#000000" FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Algo
sobre ti:<BR><TEXTAREA NAME="algo" ROWS="5" COLS="80" WRAP="VIRTUAL"></TEXTAREA><BR><BR>Una
sugerencia para mejorar la web:<BR><TEXTAREA NAME="sugerencia" COLS="80" WRAP="VIRTUAL" ROWS="5"></TEXTAREA><BR><BR>Si
quieres que en tu ficha aparezca una foto tuya tienes que enviar la foto a <B>webmaster@canalnastic.com</B>,
puedes enviar tantas como quieras especificando la foto que quieras que salga
como principal en tu ficha, y tu nombre o nick para que no haya confusiones. <BR>Una
vez se mejore el servicio podr&aacute;s enviar fotos desde este mismo formulario.
Env&iacute;a las fotos en la mayor resoluci&oacute;n y calidad posible. <BR><BR>
</FONT><font color="#000000"><INPUT TYPE="submit" NAME="Submit" VALUE="Enviar">
</font> </p></td></tr> </table><table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr> <td height="2">&nbsp;</td><td height="2"> <div align="right"></div></td></tr> </table></td></tr>
</table><BR><p><BR></p></form><?

}else{


//Estoy recibiendo el formulario, compongo el cuerpo

$textF = "TITULO DE TU FORMULARIO ESTO LO VERAS EN EL EMAIL\r\n";
$textF = "============================================\r\n" ;
$textF .= "Nombre: ".$_POST["nombre"]."\r\n"; // Aqui solamente colocas los nombres a los campos de tu formulario
$textF .= "Nick en el foro: ".$_POST["nickforo"]."\r\n";
$textF .= "Nick en el chat #nastic de IRC: ".$_POST["nickchat"]."\r\n";
$textF .= "Canales de IRC que frecuentas: ".$_POST["canales"]."\r\n";
$textF .= "Fecha de nacimiento: ".$_POST["fecha"]."\r\n";
$textF .= "Lugar de nacimiento: ".$_POST["lugar"]."\r\n";
$textF .= "Messenger: ".$_POST["messenger"]."\r\n";
$textF .= "Yahoo Messenger: ".$_POST["yahoo"]."\r\n";
$textF .= "E-mail habitual: ".$_POST["mail"]."\r\n";
$textF .= "Aceptas: ".$_POST["aceptacion"]."\r\n";
$textF .= "Aficiones: ".$_POST["aficiones"]."\r\n";
$textF .= "En que lugar te situas?: ".$_POST["p"]."\r\n";
$textF .= "Algo sobre ti: ".$_POST["algo"]."\r\n";
$textF .= "Una sugerencia para mejorar la web: ".$_POST["sugerencia"]."\r\n";
$textF .= "============================================\r\n" ;


$enviarEmail = array("webmaster@canalnastic.com");
while (list($key,$email) = each($enviarEmail)){

mail($email,"ASUNTO CORREO",$textF);

}

echo "<SCRIPT LANGUAGE='javascript'>
location.href = 'respuesta.html';
</SCRIPT>";


$asunto = "Auto-Respuesta de TU PAGINA";
$mensaje = "Saludos ".$nomb.",

Gracias por cONTACTARNOS.


Gracias,
TU DOMINIO.com";

mail($mail,$asunto,$mensaje, "FROM:TUCORREO@TUDOMINIO.com");

}

?> <br> <br> <br> <br> <br> <br> </div>
</body>
</html>
canalnastic está desconectado   Responder Citando
Antiguo 21-may-2006, 16:01   #4 (permalink)
Colaborador
PatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy prontoPatomaS llegará a ser famoso muy pronto
 
Avatar de PatomaS
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.393
Alegría

Hola

La página que carga en el navegador al seguir tu vínculo, es de extensión .html.

A menos que hayas configurado el servidor para que procese los documentos .html con el motor de php, tu problema es que la página no está siendo procesada en el servidor.

Cambia la extensión a .php y si tienes php instalado y adecuadamente configurado, ya debería funcionar.

Felicidad
__________________
De vuelta por aquí, más o menos

¡ hey, hou, hou, hey !
PatomaS está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 04:31.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93