Here's my code below, that I use to get the question to appear on the page.
Keep in mind, I have the question and the answers in separate db tables. Is
that OK? I figure it is and that I'm missing something simple.
<cfquery name="Qs" datasource="datainfo.mdb" username="imwebguy"
password="smacktag">
SELECT dbo.trs_test_poll.CategoryQ, dbo.trs_test_poll.PollQID,
dbo.trs_test_poll.Question, dbo.trs_category.CategoryID,
dbo.trs_category.Category
FROM dbo.trs_test_poll, dbo.trs_category
WHERE dbo.trs_test_poll.CategoryQ = dbo.trs_category.CategoryID
AND dbo.trs_category.CategoryID=#URL.CategoryID#
</cfquery>
My form looks like this:
Question? ---which comes from one db table
Then, below, you click either a Yes No radio button
And enter comments into a text area.
Then enter your email into a text field.
Then click submit.
The question comes from one db table and the answers are entered into another
db table. What I need to accomplish is to get the ID from the Question db to
be entered into the Answer db table.
Please help!
Thanks in advance!
Chris