In the action page, which looks like it is another form with hidden form
fields with the contents of the first form, you do not have CategoryID
defined probably. In the first page try this...
<CFOUTPUT QUERY="GetCategoryType">
<CFINPUT TYPE="CheckBox" NAME="CategoryIDs">
#CategoryType#<BR>
</CFOUTPUT>
If you have more than one category checked it will send something like this
to the next page.
Form.CategoryIDs = cat1,cat2,cat6,cat9 ... Use this list to dynamically
create your hidden form fields.
<CFPARAM NAME="CategoryIDs" DEFAULT="">
<INPUT TYPE="hidden" NAME="CategoryTypeIDs" VALUE="#categoryIDs#">
Then in your next page if you are using this form field you can check for
it's existance with...
<CFIF Len(CateogryIDs)>
Yes.. do this code
At this point I don't know what you want to do with this values but it
might do something like this...
<CFLOOP LIST = "#CategoryIDs#" INDEX="tmp">
lala......
</CFLOOP>
</CFIF>
Good Luck.
-----Original Message-----
From: Marco Gil [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 14, 2000 12:14 AM
To: ColdFusion
Subject: Input Field Problem
Let me first say that I want to apologize for the previous two emails... I
had forgotten that default settings were for html emails... I have put it
all back to Plain Text... You can always count on the wife to screw up your
settings :)
My question was this:
I have been really struggling with trying to get the following code to work:
<CFOUTPUT QUERY="GetCategoryType">
<CFINPUT TYPE="CheckBox" NAME="Category#CategoryTypeID#">
#CategoryType#<BR>
</CFOUTPUT>
Although this code above works for this particular form, the input field
name "Category#CategoryTypeID#" is unusable on the following action form
where the value is actually used to insert data into the table. I have the
following on the subsequent insert action form:
<CFPARAM NAME="Category#CategoryTypeID#" DEFAULT="No">
<INPUT TYPE="hidden" NAME="CategoryTypeID" VALUE="Category#CategoryTypeID#">
However.. when doing that I get the following error:
Error resolving parameter CATEGORYTYPEID
ColdFusion was unable to determine the value of the parameter. This problem
is very likely due to the fact that either:
1.. You have misspelled the parameter name, or
2.. You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or
CFTABLE tag.
If anyone here can help me resolve this I would greatly appreciate it...
Thanks!
Marco
P.S - Hope this email works this time around :) Really sorry.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.