Programming instructions
72 Lesson 2 Writing Your First ColdFusion Application
<td>
<select name="departureOperator">
<option value="EQUALS">is
<option value="BEFORE">before
<option value="AFTER">after
</select>
</td>
<td>
<input type="text" name="departureValue">
</td>
</tr>
<!--- Field: price --->
<tr>
<td>Price
</td>
<td>
<select name="priceOperator">
<option value="EQUAL">is
<option value="GREATER">greater than
<option value="SMALLER">smaller than
</select>
</td>
<td>
<input type="text" name="priceValue">
</td>
</tr>
</table>
<p>
<input type="submit" value="Search">
</form>
</body>
</html>
Reviewing the code
The following table describes the search criteria code and its function:
Code Explanation
<form action="tripsearchresult.cfm" method="post">
Identifies tripsearchresult.cfm as the 
search action page. Results of user 
entry are passed to the search action 
page.
<select name="tripLocationOperator">
<option value="EQUALS">is
<option value="BEGINS_WITH">begins with
</select>
Builds a drop-down list offering the 
query operators for tripLocation. 
There must one operator list box for 
each queryable column. 
<input type="text" name="tripLocationValue">
Input text control to capture value to 
test. There is one text control for 
each queryable column.










