I have a form which, when sent, sends a copy to the Webmaster and e.mails (CDONTS) a copy to the person who filled in the form. A 'Thank you' HTML page also appears when the form is submitted.
If possible I would like to personalise the 'Thank you' page, as in "Thanks Maria" but don't really want (or know how!!) to change or interfere with the variables I already have.
In all, I have an email.asp file (which holds the form and calls the thanks page):
hi,
try the code bellow, what i have done is used a technique called post back. What this does is posts you form back to the same page does all your CDONTS and then displays your custom thank you page.
%>
<table width="90%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td>Here is where you put your custom Thank you page and message to <%=t1%></td>
</tr>
</table>
<%end if%>
</body>
</html>
hi,
Ok, try to understand you only need 1 page to do this task and not 2 pages.
really the 1 page is the 2 pages combine if you read and follow then code you will see that either the form page is displayed or the customised thank you page. I have put in bold the fixes for the sending part.
%>
------------In this part here you add in your custom thank you page-------------------------------
<table width="90%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td>Thank you <%=t1%></td>
</tr>
</table>
<%end if%>
</body>
</html>
Many thanks agin for your reply.
I have spent a good few hours over the weekend on it, and think I am just about there. I think it works!
Many thanks again and best wishes
laTortuga
Hey i've been looking at your code and I think you may be able to help me. I've come into the problem of auto response email. I've posted a thread on it but no one seems to be replying. With what you have here does the user who filled out the form get an email saying thank you or something. I am really lost on this issue of auto response email. Can you help me, on this.
The visitor to the site completes the form (mane, e.mail address, and message). Clicks submit and a copy of the details (name, e.mail, and message) goes to the Webmaster.
A copy of what the user has submitted is then e.mailed back to the user, just so that he has a copy of his form's details.
Another page, if the form has been completed correctly, says 'Thank you + name' to the person who has filled in the form.
Bookmarks