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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirmation Page 1

Status
Not open for further replies.
Jun 3, 2005
25
US
I have a form that send all the info to a Formmailer.cfm file, its a simple Formmailer.cfp, just cparam arguments, with cfmail to send it to an email address.

How do I create a confirmation page that will show the user, the information gathered from the form(like the copy I get in the email), with a confirm(submit) and go back and change it button.

 
Um...copy and paste everything that's in the email and have it displayed with <cfoutput>? Then have another form with all of the original values stored as hidden fields and a submit button to pass it to the email page.



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
I'm all new to this, how would I go about doing that?

When you say copy and paste whats in the email, you mean the form that creates the email, not the email it self?

Stored as hidden fields where? in the web form, or the email form mailer?
 
From your first form, instead of going to Formmailer.cfm, change the form action to go to FormVerify.cfm. (You'll need to create the new page FormVerify.cfm) Then, copy all of the code between your <cfmail></cfmail> tag on Formmailer.cfm and paste it on the FormVerify.cfm page (be sure to put it between <cfoutput></cfoutput> tags. At the bottom of that page, put the following code:
Code:
<form action="Formmailer.cfm" method="post">
<cfoutput>
  <cfloop list="#form.fieldnames#" index="f">
    <input type="hidden" value="#jsstringformat(FORM[f])#" name="#f#">
  </cfloop>
  <input type="submit">
</cfoutput>
</form>
That should take all of the info from the original form and pass it over to the mailer when the user clicks the submit button.



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
Would using

cfif len(trim(Form.checkbox1)) gt 0>
checkbox1: #trim(Form.checkbox1)#
</cfif>

be afecting it?
 
When I check the box that it errors on, It countinues to the next box, and gives that error.

THE EXACT ERROR IS

Error Occurred While Processing Request

Error Diagnostic Information

An error occurred while evaluating the expression:

#Form.Event#

Error near line 62, column 18.

Error resolving parameter FORM.EVENT

The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.

The error occurred while processing an element with a general identifier of (#Form.Event#), occupying document position (62:17) to (62:37).

Date/Time: 06/16/05 15:13:34
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Remote Address: 70.107.241.191
HTTP Referrer:
Please inform the site administrator that this error has occurred (be sure to include the contents of this page in your message to the administrator).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top