OK...here goes....and bear in mind I have never used CFSELECT, but I've done my 
fair share of form processing ;-)

So when you post your form, you will have a bunch of FORM scoped variables 
(referenced by FORM.formFieldName).  If your CFSELECT tag is named 
"mySelectBox" 
(and let's say it holds a list of cities), then wherever you post your form to 
will have access to FORM.mySelectBox.

Your query could look something like this:

INSERT INTO myTable
                         (
                          city_id
                          )
         VALUES
                          (
                           <cfqueryparam value="#FORM.mySelectBox#" 
cfsqltype="cf_sql_numeric">
                          )

Now the above query assumes that the value of the option tags in your CFSELECT 
hold the city_id (numeric).  Of course you'd be inserting other values for the 
rest of the record, but it shows you the basics.

Hope that helps!

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2924
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6

Reply via email to