Pagina de confirmacion para FormMail

Hola, me gustaria saber si existe alguna forma de crear una pagina de confirmacion para un formulario a base de FormMail que haga algo similar a una pagina de confirmacion para formularios hecha en Frontpage, es decir que capte algunos de los campos (P.E.: nombre, telefono, etc) y los despliegue en la pagina de confirmacion (P.E.: Gracias "campo_nombre")
Gracias por su ayuda.
Rodrigo

1 respuesta

Respuesta
1
Aca te mando un ejemplo para que lo veas...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Email this page to your friends</title>
<link REL="stylesheet" HREF="/global.css" TYPE="text/css">
<script language="JavaScript">
<!--
function VerifyData() {
strEmailFrom = document.emailForm.fromEmail.value;
strEmailTo = document.emailForm.toEmail.value;
posFrom = strEmailFrom.indexOf("@");
pos1From = strEmailFrom.indexOf(".");
posTo = sEmailtrEmailTo.indexOf("@");
pos1To = strEmailTo.indexOf(".");
if (strEmailFrom == "") {
alert ("Please enter your email address.");
document.emailForm.fromEmail.focus();
return false;
} else if ((posFrom == -1) || (pos1From == -1)) {
alert("Please enter a valid internet email address.");
document.emailForm.fromEmail.focus();
return false;
} else if (strEmailTo == "") {
alert ("Please enter the recipient's email address.");
document.emailForm.toEmail.focus();
return false;
} else if ((posTo == -1) || (pos1To == -1)) {
alert("Please enter a valid internet email address.");
document.emailForm.toEmail.focus();
return false;
} else
return true;
return false;
}
//-->
</script>
</head>
<body bgcolor="#EEEEDD" onLoad="document.emailForm.fromEmail.focus();" MARGINWIDTH="0" LEFTMARGIN="0" MARGINHEIGHT="0" TOPMARGIN="0" background="/footer/images/top_stripe.gif">
<form action="send_mail.asp" name="emailForm" METHOD="POST" onSubmit="return VerifyData()">
<input type="hidden" name="referrer" value="">
<input type="hidden" name="URL" value="http://www.trendmicro.com/ios/">
<input type="hidden" name="sourceTitle" value="Trend Micro, Incorporated - Outsourcing Services">
<table border="0" cellspacing="4" cellpadding="0" width="100%" height="100%">
<tr>
<td height="10"><img src="/spacer.gif" width="5" height="1"></td>
<td colspan="2" valign="top"><span class="footerHead">Email this page to your friends</span></td>
<td height="10"><img src="/spacer.gif" width="5" height="1"></td>
</tr>
<tr>
<td height="8" colspan="4"><img src="/spacer.gif" width="1" height="8"></td>
</tr>
<tr>
<td><script language="JavaScript1.1" SRC="/dcsav.js"></script><NOSCRIPT>
<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="http://wdcs.trendmicro.com/njs.gif?dcsuri=/nojavascript&dcssip=www.trendmicro.com"><br>
</NOSCRIPT></td>
<td align="right" width="100%" height="10" class="normal"><b>Your email:</b></td>
<td height="10"><input type="text" name="fromEmail" size="38" tabindex="1" style="font-family: Courier New, monospace"></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="right" valign="top" width="100%" height="10" class="normal">
<img src="/spacer.gif" width="1" height="15"><br><b>Friends' emails:</b></td>
<td nowrap height="10">
<span class="graySm">
Example: [email protected]<span style="color: #000000"><b>,</b></span> [email protected]<span style="color: #000000"><b>,</b></span> [email protected]</span><br>
<textarea rows="2" name="toEmail" cols="36" tabindex="2" wrap style="font-family: Courier New, monospace"></textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="right" width="100%" height="10" class="normal"><b>Subject:</b></td>
<td nowrap height="10"><input type="text" name="subject" size="38" tabindex="3" value="Trend Micro, Incorporated - Outsourcing Services" style="font-family: Courier New, monospace"></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="right" valign="top" width="100%" height="10" class="normal">
<b>Personal message:</b><br>
<span class="graySm">(optional)<br>
30 words maximum</span></td>
<td valign="top" height="10"><textarea rows="3" name="comments" cols="36" tabindex="4" wrap style="font-family: Courier New, monospace"></textarea></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td align="right" valign="bottom">
<input type="button" tabindex="6" value="Close window" onClick="window.close();" class="button" onMouseOver="this.className='buttonOver';" onMouseOut="this.className='button';"> 
<input type="submit" value="Send" name="B1" tabindex="7" class="buttonBold" onMouseOver="this.className='buttonBoldOver';" onMouseOut="this.className='buttonBold';"></td>
<td></td>
</tr>
<tr>
<td height="1" colspan="4"><img src="/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</form>
</body>
</html>
Esto lo que hace es controlar que esten todos datos para enviar un mail, si te animas podes modificarlo y hacer que muestre los datos de la persona.

Añade tu respuesta

Haz clic para o