Autodesk 15606-011408-9300 Developer Guide - Page 105
program in the form of a URL. The form in, calls yet another
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 105 highlights
The next line creates a new browser window, using the loc variable to supply the URL. The last line shifts browser focus to the new window we just created. Now, let's look at the second CFM file, the showform.cfm file: Attribute Input Incident Report: Reported By: The showform.cfm file does indeed show a form, which is used to enter a description of the incident. The bulk of the file is a standard HTML form. The form has been placed within tags to give us access to the ColdFusion variables #LAT# and #LON#. Once again, these variables are replaced on the server by the userspecified lat/lon coordinates. In short, an HTML form collects data from the user and sends that data to a program in the form of a URL. The form in showform.cfm calls yet another CFM file, insert.cfm, passing it the following parameters: I The latitude value represented by the ColdFusion variable #LAT#; this value is passed as the form parameter rpt_lat. I The longitude value represented by the ColdFusion variable #LON#; this value is passed as the form parameter rpt_lon. I An incident description entered in the form by a user; this description is passed as the form parameter rpt_info. I A name entered in the form by a user; this name is passed as the form parameter rpt_by. Creating Report Scripts with ColdFusion | 105