Skip to main content
November 12, 2012
Question

cf10 how do I pass the selected value in cfselect to another .cfm page

  • November 12, 2012
  • 1 reply
  • 906 views

I am new with CF. I am using CF 10 on WIN XP. I am pulling a distinct list of data and want the user to select one to open a new page (detail.cfm) and pass that value to the next page to be used for other queries.

can it be done?

Here is my code for cfselect .

What am I missing

<cfform name = "Form" action="detail.cfm"

          

         <cfselect name="trip"

                    query="gettri"

                 value="district_name"

                 required="yes"

                 multiple="yes"

                size="1">

    </cfselect>

<br> <input type="Submit" value="Submit">

</cfform>

Thank you for your time

Rob

This topic has been closed for replies.

1 reply

Inspiring
November 12, 2012

All you appear to be missing is a closing angle bracket at the end of your cfform tag.    

November 12, 2012

I missed it when I typed it in my original question

The > bracket is in my code.

I justed checked.

It should read  ~ "detail.cfm">

The list works when I excute the page.

How do I pass the value after I have selected it on the page?

Thank you

Inspiring
November 12, 2012

cfdump your form scope.  You should see it.