Inserting data from a form.
The tag <CFINSERT> is an easy way to insert data from a form into a database table. The following is an example of what would be placed at the top of the “addStudent.cfm” action template:
<cfinsert datasource=“student_db” tablename=“students”>
*Note that we are using the same datasource and that that table to be updated is specified as well.