Help with DB driven forms
hello,
i created 2 select box populated information in sql database works fine. want able have user pick 1 of 2 select boxes , submit request pull information sql database base on selection. result should placed on page called results.cfm display choice i'm having trouble pulling on information. can please guide me in right direction? i've provided code i've got far. appreciated.
thanks in advance,
eynar23
ps - i'm looking little guidence want learn how accomplish on own.
******************************************************************************
<h3>search related area:</h3>
<cfform name="selectchoice" action="results.cfm" method="post">
<cfquery name = "relatedareadrop" datasource = "cssys_issuetracker">
select value, description
from cs_relatedareas
order value
</cfquery>
<cfselect name = "start_end" query = "relatedareadrop" size = "1" value="value">
</cfselect>
<br><br>
<h3>search issue type:</h3>
<cfquery name = "issuetypedrop" datasource = "cssys_issuetracker">
select issuetype
from cs_relatedareas
group issuetype
</cfquery>
<cfselect name = "start_end2" query = "issuetypedrop" size = "1" value="issuetype">
</cfselect>
<br><br>
<input type="submit" name="submit" value="search">
</cfform>
what mean having trouble pulling information over? results.cfm do? should able reference form.start_end or form.start_end2.
More discussions in ColdFusion Rich Forms
adobe
Comments
Post a Comment