User Guide

82 Chapter 7: Lesson 3: Creating a Main Application Page
<td valign="top">Price:
</td>
<td>#price#
</td>
</tr>
<tr>
<td valign="top">Base Cost:
</td>
<td>#baseCost#
</td>
</tr>
<tr>
<td valign="top">Trip Leader:
</td>
<td>#tripLeader#
</td>
</tr>
<tr>
<td valign="top">Number People:
</td>
<td>#numberPeople#
</td>
</tr>
<tr>
<td valign="top">Deposit Required:
</td>
<td>#depositRequired#
</td>
</tr>
<tr>
<td valign="top">Photo File:
</td>
<td>#photo#
</td>
</tr>
</table>
5 To provide a title that appears on the browser window, insert the following HTML code before
the
<cfoutput query = "TripQuery"> line:
<html><head>
<title> Trip Maintenance - View Record </title>
</head>
<body>
6 Insert the ending body and html tags at the end of the page:
</body>
</html>
7 Save the file as tripdetail.cfm in the my_app directory.
8 The Rio Cahabon Rafting trip has an tripID of 24. To view the trip detail for the trip in your
browser enter one of the following URLs:
Web server configuration URL
For built-in ColdFusion web
server configuration
http://localhost:8500/cfdocs/getting_started/my_app/
tripdetail.cfm?ID=24
For local third-party web
server configuration
http://localhost/cfdocs/getting_started/my_app/
tripdetail.cfm?ID=24