Help with DB driven forms
Hello,
I created two select box populated by information in a SQL Database which works fine. I want to be able to have a user pick from 1 of the 2 select boxes and submit a request to pull up information from the SQL Database base on their selection. The result should be placed on a page called results.cfm which will display their choice but I'm having trouble pulling over the information. Can anyone please guide me in the right direction? I've provided the code i've got so far. Any help is appreciated.
thanks in advance,
Eynar23
PS - i'm looking for a little guidence as I want to learn how to accomplish this on my own.
******************************************************************************
<h3>Search by Related Area:</h3>
<cfform name="selectchoice" action="results.cfm" method="post">
<cfquery name = "RelatedAreaDrop" dataSource = "CSSYS_IssueTracker">
SELECT Value, Description
FROM CS_RelatedAreas
ORDER BY Value
</cfquery>
<cfselect name = "start_end" query = "RelatedAreaDrop" size = "1" value="Value">
</cfselect>
<BR><BR>
<h3>Search by Issue Type:</h3>
<cfquery name = "IssueTypeDrop" dataSource = "CSSYS_IssueTracker">
SELECT IssueType
FROM CS_RelatedAreas
GROUP BY IssueType
</cfquery>
<cfselect name = "start_end2" query = "IssueTypeDrop" size = "1" value="IssueType">
</cfselect>
<br><br>
<input type="submit" name="submit" value="Search">
</cfform>
