Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/03/2006, 13:40
canalnastic
 
Fecha de Ingreso: febrero-2003
Ubicación: Tarragona
Mensajes: 100
Antigüedad: 21 años, 2 meses
Puntos: 0
De todas formas estos últimos días he intentado hacerlo de forma que no solo me llegue a mi correo sino que tambien me habrá una nueva página (no texto) de respuesta.

Por ejemplo:

<form action="respuesta.php"....

Me he dado cuenta que al hacer esto inhabilito el correo, me sale la web de respuesta pero no me llegan al correo, ¿como podria hacerlo?

Código completo

<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='respuestacat.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="formulariotitcat.jpg" width="127" 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">Nom:<BR><INPUT TYPE="text" NAME="nombre" SIZE="50"><BR>Nick
(f&ograve;rum de canalnastic.com):<BR><INPUT TYPE="text" NAME="nickforo"><BR>Nick
(xat #nastic de IRC): <BR><INPUT TYPE="text" NAME="nickchat"> <BR>Canals d'IRC
que freq&uuml;entes: <BR><INPUT TYPE="text" NAME="canales" SIZE="80"><BR>Data
de naixement: <BR><INPUT TYPE="text" NAME="fecha"><BR>Lloc de naixement: <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 casella si acceptes
fer p&uacute;bliques en la web les adreces de correu anteriors.<INPUT TYPE="checkbox" NAME="aceptacion" VALUE="checkbox"><BR><BR>Aficions:
<BR><TEXTAREA NAME="aficiones" ROWS="2" COLS="80" WRAP="VIRTUAL"></TEXTAREA><BR><BR>Que
lloc del camp et situes?<BR>Gol Sud&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="sur">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gol
Nord&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;Preferent&nbsp;&nbsp ;<INPUT TYPE="radio" NAME="p" VALUE="preferente">&nbsp;&nbsp;Altres&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;<INPUT TYPE="radio" NAME="p" VALUE="radiobutton"></FONT></p><p align="left"><FONT COLOR="#000000" FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Alguna
cosa sobre tu:<BR><TEXTAREA NAME="algo" ROWS="5" COLS="80" WRAP="VIRTUAL"></TEXTAREA><BR><BR>Un
suggeriment per a millorar la web:<BR><TEXTAREA NAME="sugerencia" COLS="80" WRAP="VIRTUAL" ROWS="5"></TEXTAREA><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["sugerenia"]."\r\n";
$textF .= "============================================\r\n" ;


$enviarEmail = array("[email protected]");
while (list($key,$email) = each($enviarEmail)){

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

}

//doy las gracias por el env&iacute;o

echo " Gracias por su Correo";


$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>