0 Replies Latest reply on Dec 1, 2006 4:26 AM by sharon212

    How can I bind values from select box?

    sharon212
      Hi,
      I am working on flash form. I am having problem to bind values from select box. If anyone knows, please help me out.

      Here is my edited form :

      <cfquery name = "getartists" datasource = "db2">
      select name, school, age, address from artists
      </cfquery>

      <cfform name="artistform" format="flash" >
      <cfformgroup type="vertical">
      <cfformitem type="text" >Name</cfformitem>
      <cfselect name="artistname"
      query = "getartists">
      <cfloop query = "getartists">
      <option value = "#getartists.name#", "#getartists.school#", "#getartists.age#", "#getartists.address#">
      </cfloop>
      </cfselect>

      How should I bind values from select box to cfgrid or text box.

      I am getting
      <cfinput type="text" name="Name" width="85" bind = "{artistname.selected.data}">
      <cfinput type="text" name="school" width="85" ............>
      .....................
      ....................
      </cfformgroup>

      </cfform>

      Thanks in Advance.