On 31 Jan 2005, at 7:12 pm, Charlie Griefer wrote:
> are you sure your query is returning records? do a
> <cfoutput>#get_people.recordcount#</cfoutput> after your </cfquery> to
> make sure.
Ah! Now we're getting somewhere. No: when I check multiple boxes on
the form that gets me here, it sends one value, like this:
1,7
Which begs the question: how do I make it send separate values? Then I
think my CFLOOP might work.
1
7
--
<head>
<CFQUERY NAME="get_details" DATASOURCE="taskomatic">
SELECT
projects.name AS projectname,
projects.company AS projectcompany,
people.person_id,
people.name AS personname,
people.company AS personcompany
FROM projects
JOIN people ON projects.company = people.company
WHERE projects.project_id = #project_id#
</CFQUERY>
</head>
<form>
<CFOUTPUT QUERY="get_details">
<input name="person_id" type="checkbox"
value="#person_id#">#personname#</p>
</CFOUTPUT>
</form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192397
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54