MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 446

Developing coldfusion mx applications
Table of Contents

Advertisement

<cfupdate datasource="CompanyInfo"
tablename="Employee">
<h1>Employee Updated</h1>
<cfoutput>
You have updated the information for #Form.FirstName#
#Form.LastName# in the employee database.
</cfoutput>
</body>
</html>
Save the page as update_action.cfm.
2
View update_form.cfm in your web browser by specifying the page URL and an Employee ID;
3
for example, enter the following:
http://localhost/myapps/update_form.cfm?Emp_ID=3
The current information for that record appears:
Enter new values in any of the fields, and click Update Information.
4
ColdFusion updates the record in the Employee table with your new values and displays a
confirmation message.
446
Chapter 21: Updating Your Database

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents