Try here: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:54241
..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 10:43 AM To: CF-Talk Subject: RE: String function question If you know the form fields and their names ahead of time, you could lop over the names, replacing them one at a time pulling them out by name in your regex. There may be a monster regex to do this in one fell swoop, but I wouldn't know it. Is there any chance you can have two version of the HTML form: One with from fields, and one with form scoped output variables. Then you could simply include the second file inside a cfsavecontent after the form post and the resultant HTML variable would contain all the values. The latter approach may be doable on-the-fly by converting your regex to strip out form fields and replace them with a CF variable of the same name. <table><tr><td> <input name="my_form_field" type="text"> </td></tr></table> Would become <table><tr><td> #form.my_form_field# </td></tr></table> Just thoughts... ~Brad -----Original Message----- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 9:36 AM To: CF-Talk Subject: String function question I have googled this all morning and I cannot find the answer, and I am running out of time. Here is my situation: I have an HTML form that is being pulled from a database table. When the form is submitted, they want the form submitted to them in a PDF that is emailed as an attachment. I know how to do that part. What they want is for the submitted PDF to look exactly like the HTML form that they submitted, replacing the form elements with the submitted values. I am able to query the database and get the HTML form, using REReplace I can strip out all of the input and form elements as well, leaving me with the layout in tact. minus the input elements. What I cannot figure out though is how to get the submitted values to replace the void left when I strip the input elements. I know that I need to find the form field names and then match them up to the submitted names and insert the values, but I don't exactly know how to go about this. Does this make sense? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

