Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dropdown

Participant ,
Apr 09, 2009 Apr 09, 2009

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

TOPICS
Advanced techniques
474
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 09, 2009 Apr 09, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources