<html><DIV>
<P><BR>ok all you CFMasters.....I think i have a relatively simple CF question
concerning databases and CFQuery. But for the life of me am stumped (4 hours to put it
exactly). I am trying to build a page with a pull down select menu of different
towns in the state of connecticut. When the user selects a town (i.e.
Plainfield, Smallville...ect.), I would like my user to be sent to a cfm "town"
page with the corresponding town data (ie. town, organization, population size, event
date, ect.......). The million dollar question is: how do i set up my pull down
"town" variables in my code so that when a specific town is selected, i
get that specific town's information from my database. I know conceptually
what is going on here but am having trouble with the correct CF coding here. I think
it has something to do with setting my town variable up correctly in my inital CFQUERY
and in my pull down menu. But cannot pinpoint it.</P>
<P>Below is what i have for my CFQUERY coding , my CFOUTPUT coding, as well as
coding for my pull down menu. </P>
<P>Please ANY help,especially with the coding, would be greatly appreciated. Have a
safe holiday everyone.</P>
<P> </P>
<P>thanks, colin</P>
<P>Here is my coding: </P></DIV>
<DIV></DIV>
<DIV><CFQUERY NAME="GetResults" DATASOURCE="Reminder"><BR> SELECT town,
organization, headline, body, event_date<BR> FROM
GetResults<BR> WHERE ?????????</DIV>
<DIV> </DIV>
<DIV> <BR></CFQUERY></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><CFOUTPUT QUERY =
"GetResults"><BR> <BR> <P>Town:
#town#
</P><BR> <P>Organization:
#organization#
</P><BR> <P>Headline:
#headline#
</P><BR> <P>Body:
#body#
</P><BR> <P>Event
Date: #event_date#
</P><BR> <BR> </CFOUTPUT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>******TOWN PULLDOWN********</DIV>
<DIV> </DIV>
<DIV><table border="0" cellpadding="0" cellspacing="0"
width="611"><BR> <tr><BR> <td
width="99"><img height="40" width="99"
src="images/navhead.gif"></td><BR> <td
valign="middle"><font
size="2"><BR> <form name="FormName"
action="(Empty Reference!)"
method="get"><BR> Search:</font><font
face="Verdana" size="2"> <select name="selectName" size="1"
tabindex="1"><BR> <option
value="Manchester"
selected>Manchester<BR> <option
value="Ashford"
selected>Ashford<BR> <option
value="East Hartford" selected>East
Hartford<BR> <option value="East Windsor"
selected>East Windsor<BR> <option
value="Ellington"
selected>Ellington<BR> <option
value="Enfield"
selected>Enfield<BR> <option
value="Pomfret"
selected>Pomfret<BR> <option
value="Somers"
selected>Somers<BR> <option
value="South Windsor" selected>South
Windsor<BR> <option value="Stafford"
selected>Stafford<BR> <option
value="Stafforville"
selected>Stafforville<BR> <option
value="Suffield"
selected>Suffield<BR> <option
value="Tolland"
selected>Tolland<BR> <option
value="Vernon"
selected>Vernon<BR> <option
value="Warehouse Point" selected>Warehouse
Point<BR> <option value="West Suffield"
selected>West Suffield<BR> <option
value="Willington"
selected>Willington<BR> <option
value="Windsor"
selected>Windsor<BR> <option
value="Windsor Locks" selected>Windsor
Locks<BR> <option value="Brooklyn"
selected>Brooklyn<BR> <option
value="Chaplin"
selected>Chaplin<BR> <option
value="Colchester"
selected>Colchester<BR> <option
value="Coventry"
selected>Coventry<BR> <option
value="Danielson"
selected>Danielson<BR> <option
value="Dayville"
selected>Dayville<BR> <option
value="East Haddam" selected>East
Haddam<BR> <option value="E. Woodstock"
selected>E. Woodstock<BR> <option
value="Killingly"
selected>Killingly<BR> <option
value="Lebanon"
selected>Lebanon<BR> <option
value="Mansfield" selected>Mansfield
Mansfield<BR> <option value="Moodus"
selected>Moodus<BR> <option value="No.
Grosvenordale" selected>No.
Grosvenordale<BR> <option
value="Plainfield"
selected>Plainfield<BR> <option
value="Pomfret"
selected>Pomfret<BR> <option
value="Putnam"
selected>Putnam<BR> <option
value="Sterling"
selected>Sterling<BR> <option
value="Storrs"
selected>Storrs<BR> <option
value="Thompson"
selected>Thompson<BR> <option
value="Willimantic"
selected>Willimantic<BR> <option
value="Windham"
selected>Windham<BR> <option
value="Woodstock"
selected>Woodstock<BR> <option
value="all" selected>Town
News<BR> </select> </DIV>
<DIV> </form><BR> </font></td><BR> </tr><BR> </table></DIV><br
clear=all><hr>Get your FREE download of MSN Explorer at <a
href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free
Setup from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support
Visit SoloServer, https://secure.irides.com/clientsetup.cfm.
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists