macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Problem with CFSELECT(s)

Subject: Re: Problem with CFSELECTs
From: Azadi
Date: Thu, 30 Aug 2007 08:30:24 +0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion

that is expected and correct behaviour.
what the FORM.ServiceID (and FORM.ServiceTypeID) variables store are VALUES of corresponding form controls (fields). The VALUES are ids of corresponding records in your db, while what you refer to as names are TEXT of the form fields.
if you look at your cfc you will see that the functions that populate
your select fields return array holding id & name of records from the
db. id populates the VALUE attribute of the form field, and name
populates the TEXT attribute.
hope that was clear enough...

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

<Prev in Thread] Current Thread [Next in Thread>