Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/05/2006, 03:50
canalnastic
 
Fecha de Ingreso: febrero-2003
Ubicación: Tarragona
Mensajes: 100
Antigüedad: 21 años, 2 meses
Puntos: 0
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>[email protected]</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("[email protected]");
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:[email protected]");

}

?> <br> <br> <br> <br> <br> <br> </div>
</body>
</html>