I have a page that list all my records in an Access 2000 database.
I want to be able to check boxes next to specific records and then show those records only on the action page.
I seem to be having problem fetching the checked checkboxes where it always shows all the records on the action page instead of just the records I selected (checked).
Please advise.
theActionPage.cfm page
I want to be able to check boxes next to specific records and then show those records only on the action page.
I seem to be having problem fetching the checked checkboxes where it always shows all the records on the action page instead of just the records I selected (checked).
Please advise.
Code:
<cfquery name="queOne" datasource="dsn">
SELECT *
FROM theTable
</cfquery>
<cfoutput query="queOne">
<form method = "post" action = "theActionPage.cfm">
<input type="Checkbox" value="#ID#" name="theCheck"> #name#
</cfoutput>
<br>
<input type="Submit" value="Submit">
</form>
theActionPage.cfm page
Code:
<cfparam name="form.theCheck" default="">
<cfquery name="que" datasource="dsn">
SELECT *
FROM theTable
</cfquery>
<cfoutput query="dsn">
<cfif listLen(form.theCheck) gt "">
#ID# #name#<br>
</cfif>
</cfoutput>