1 Reply Latest reply on Apr 9, 2009 12:30 PM by ilssac

    dropdown

    Level 1

      I have two page each have a drop down menu. When I choose on the 1st page drop down I want that option to be shown on the second page drop down.

       

      Example:

      1st page: red,orange,blue when I pick orange it will go to the next page and I want the word orange showing on the dropdown of the 2nd page

       

      I hope it's clear

        • 1. Re: dropdown
          ilssac Level 5

          pageOne.cfm

           

          <form action="pageTwo.cfm" method="post">
              <selec name="colors">
                 <opiton value="Red">Red</option>
                 <option value="Blue">Blue</option>
                <options value="Orange">Orange</option>
             </select>
            <input type="submit">
          </form>
          

           

           

          pageTwo.cfm

          <cfoutput>
          <form action="pageOne.cfm" method="post">
              <selec name="colors">
                 <opiton>#form.colors#</option>
             </select>
            <input type="submit">
          </form>
          
          OR
          
          <form action="pageTwo.cfm" method="post">
              <selec namet="colors">
                 <opiton value="Red" #iif(form.colors EQ 'Red',de('selected="selected"'),de(''))#>Red</option>
                 <option value="Blue" #iif(form.colors EQ 'Blue',de('selected="selected"'),de(''))#>Blue</option>
                <options value="Orange" #iif(form.colors EQ 'Orange',de('selected="selected"'),de(''))#>Orange</option>
             </select>
            <input type="submit">
          </form>
          
          OR
          
          #form.colors#
          
          </cfoutput>
          

           

          Message was edited by: Ian Skinner