Creating the Insert Page
Now that you've developed a working form to collect data, it's time to design the insert page that will process the data and add it to the database. This action is transparent to the user—by default his browser will never know it has happened. For this reason, it's always a good idea to send a confirmation message back to the user so that he knows the information has successfully been added.
Fortunately, ColdFusion can handle both operations with a single template. The page you design in this section will add all submitted form data to the "calls" table in the form of a new record, and it will send confirmation to the user.
You begin by creating the ACTION page insert.cfm within the folder gargantuan. Because there's ...
Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.