I'm having a brain-freeze and I need help.  I'm sure this is a small thing but 
it's just not coming to me.  I've got a form with a cfselect statement.  When 
one of the options is selected it should submit the value to this file:  
regional.forecast.data.cfm.  This file should display different tables based on 
the selection.  I've got several different possibilities in the if statement 
below, but none of them are working. Any suggestions would be appreciated?

<cfform name="forecast_bycommunity_form" method="post" 
action="regional.forecast.data.cfm" preservedata="yes">
        
    <div id="search" style="border:1px solid black; padding:10px; width:230px;">
        <input type="hidden" name="reporttype" value="2" />
        Regional Search<br /><br />
            <cfselect name="RegionalSearch" size="4" style="width:230px">
                <option value="0">Total population by Community</option>
                <option value="1">Total households by Community</option>
                <option value="2">Total employment by Community</option>
                <option value="3">School age pop. (5-17) by School 
District</option>
            </cfselect><br /><br />
        <input type="submit" value="Search Data" id="fbc_submit" />
    </div>
  
</cfform>

 <div class="title" style="width:890px; text-align:center">
        <cfif IsDefined ("RegionalSearch")and "RegionalSearch" Is 0>
                        Total Forecasted Population by Community
        <cfelseif IsDefined ("forecast_bycommunity_form") and 
"forecast_bycommunity_form" eq 1>
                Total Forecasted Households by Community 
        <cfelseif IsDefined ("reporttype") and "reporttype" eq 2>
                Total Forecasted Employment by Community>    
        <cfelse>
                Total Forecasted School Age Population (5-17) by School District
        </cfif>
        </div> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4201
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to