Question
Extract Boilerplate Text From Second Table
I have a link in an email message that passes a URL parameter
to a form. That form has a CFQUERY statement that pulls one single
record from "MyDatabase", "Customers". On the same page, I'd like
to display all the records from "BoilerParagraphs" of MyDatabase.
The records in Customers are not related to BoilerParagraphs.
Customers is names, emails, phone numbers, etc. of people.
BoilerParagraphs is simply 10-15 boilerplate paragraphs. I want to
display the entire list of boilerplate paragraphs on my form, then
check Yes or No option buttons next to each paragraph.
After I submit the form, I want to update the record selected by the URL parameter in Customers, which has fields titled "para1" "para2", etc. I want to add to this record either the value 0 (for No) or 1 (For yes) for each paragraph displayed on the form.
So basically, the form would have to query Customers and BoilerParagraphs, then display a single specific record from Customers and all records from BoilerParagraphs. But, update Customers based on Yes/No values selected for records output from BoilerParagraphs. I'm pretty sure this means that the records in BoilerParagraphs will need a field, let's say "paraNo", that contains text like "para1", "para2", etc. Then the relevant column headings in Customers will need to be titled "Para1", "Para2", etc.
I am hoping that I'm making some sense, and that someone will have pity on me this Friday afternoon and share some ***basic**** pseudocode. I'm a CF noob who hasn't worked her way up to the fancy stuff yet.
Thanks,
GwenH
After I submit the form, I want to update the record selected by the URL parameter in Customers, which has fields titled "para1" "para2", etc. I want to add to this record either the value 0 (for No) or 1 (For yes) for each paragraph displayed on the form.
So basically, the form would have to query Customers and BoilerParagraphs, then display a single specific record from Customers and all records from BoilerParagraphs. But, update Customers based on Yes/No values selected for records output from BoilerParagraphs. I'm pretty sure this means that the records in BoilerParagraphs will need a field, let's say "paraNo", that contains text like "para1", "para2", etc. Then the relevant column headings in Customers will need to be titled "Para1", "Para2", etc.
I am hoping that I'm making some sense, and that someone will have pity on me this Friday afternoon and share some ***basic**** pseudocode. I'm a CF noob who hasn't worked her way up to the fancy stuff yet.
Thanks,
GwenH
