Skip to main content
Known Participant
March 24, 2009
Question

I wish to display a text in output in DSP_output.cfm (output) CFIF based on what they select in DSP_search.cfm

  • March 24, 2009
  • 1 reply
  • 336 views
I wish to display a text in output in
DSP_output.cfm (output)
based on what they select in DSP_search.cfm (search page)
what do I have to do (or add to the code i already have) to acoomplish my objective?



DSP_search.cfm
Display screen where users can click on a drop down
<!-----------------------
<tr>
<td align="right">RING:</td>
<td><select name="RING">
<option value=""> </option>
<cfloop index="i" from="1" to="2">
<option value="#variables.i#">#variables.i#</option>
</cfloop>
</select></td>
</tr>

---------------------------->

DSP_output.cfm
If they choose the drop down 1 I want to output only
the text one.
if 2 then output text two

if they dont select any then
i will outpput both text "one and two"

Thanks

also, the out put is not limited to just the DSP_output.cfm
it will be passed in in different pages.

Thanks
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 24, 2009
    I'll do part of it for you, but only part of it

    <cfoutput>
    <cfif form.ring is 1>
    #text1#
    <cfelseif something>

    <cfelse>

    </cfif>