Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirmation Page for CDONTS form process

Status
Not open for further replies.
Mar 14, 2002
711
US
I have an ASP page where the user fills out about 30 fields in a form and then submits it for processing, the form fields are processed by a simple CDONTS script that emails the fields to a recipient. I am now trying to create a confirmation page for the person submitting the form so they can print it out for their own records, but I am sort of stuck. How do I call up the form values from the previous page and insert in to my confirmation page?

I tried something like this:

ASP Processing Form page:

<%frmVendor=Request.Form(&quot;VENDOR&quot;)%>
<%frmDescription=Request.Form(&quot;EQUIPMENT DESCRIPTION&quot;)%>
<%frmManufacturer=Request.Form(&quot;MANUFACTURER&quot;)%>
<%frmModel=Request.Form(&quot;MODEL&quot;)%>
<%frmSerialnumber=Request.Form(&quot;SERIAL NUMBER&quot;)%>
<%frmOriginator=Request.Form(&quot;ORIGINATOR&quot;)%>
<%frmProject=Request.Form(&quot;AR-PROJECT NUMBER&quot;)%>
<%frmActivity=Request.Form(&quot;ACTIVITY&quot;)%>
<%frmCost=Request.Form(&quot;COST&quot;)%>
<%frmProductionDepartment=Request.Form(&quot;PRODUCTION DEPARTMENT&quot;)%>
<%frmPlantArea=Request.Form(&quot;PLANT AREA&quot;)%>
<%frmMoldWeight=Request.Form(&quot;MOLD WEIGHT&quot;)%>
<%frmCavities=Request.Form(&quot;CAVITIES&quot;)%>
<%frmRunnerType=Request.Form(&quot;RUNNER TYPE&quot;)%>
<%frmStackHeight=Request.Form(&quot;STACK HEIGHT&quot;)%>
<%frmShotWeight=Request.Form(&quot;SHOT WEIGHT&quot;)%>
<%frmMaterialType=Request.Form(&quot;MATERIAL TYPE&quot;)%>
<%frmProductDrawing=Request.Form(&quot;PRODUCT DRAWING NO&quot;)%>
<%frmProductCodes=Request.Form(&quot;PRODUCT CODES&quot;)%>

Then on the confirmation page it looks like this:

<td width=&quot;46%&quot;><b>Vendor</b></td>
<td width=&quot;54%&quot;><%=frmVendor%>
</td>
etc, etc.

But it does not pull up any data, any idea what I am doing wrong here??

Thanks,
 
well, the confirmation page will never show anything because you're not sending anything to it. Perhaps you could create session(&quot;variables&quot;) from the form and pull the information form the session...
 
At the end of your CDONTS script where you probably do a response.redirect(&quot;thankyouPage.asp&quot;)
you could possibly try
server.transfer(&quot;thankyouPage.asp&quot;)

I might be wrong, but aren't the variables carried across when this is done? If you pull out all your request.form's into variables in the CDONTS page they might be present in the confirmation page. Worth a shot!?
 
Awesome, I will try both of these ideas and see what works.

Thanks guys!
 
I would either
1. redirect with passing variables in the querystring
or the best way is put the thank you page text in the same page as you are sending the mail
 
I am sending the mail in an ASP page that contains all the CDONTS variables, so you are saying I should put the HTML text in the same page as this? I will give that a try, the server.transfer did not work :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top