When the user submits the form with the save fuseaction, execute an err_
template before you execute and template that performs the action. If there
are errors, call the frm_ template instead.
<!--- save the department --->
<cfcase value="savedept">
<cfinclude template="err_department.cfm">
<cfinclude template="err_holidays.cfm">
<cfif len(error) GT 0 OR len(details) GT 0 OR
len(holidayProblem) GT 0>
<cfinclude template="qry_getrequestitems.cfm">
<cfset attributes.fa = "form">
<cfinclude template="frm_department.cfm">
<cfelse>
<cfinclude template="cud_department.cfm">
<cfinclude template="cud_holidays.cfm">
<!--- refresh the Holidays query --->
<cfset attributes.refresh = 1>
<cfinclude
template="../queries/qry_getholidays.cfm">
<cflocation
url="index.cfm?fa=thanksdept&deptid=#attributes.deptID#">
</cfif>
</cfcase>
---
Jeffrey B. Marsh
Professionals built the Titanic.
Amateurs built the Ark.
-----Original Message-----
From: Dian Oktosoma [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 2:13 AM
To: Fusebox
Subject: Server side validation
Is there any examples that shows how to create server side validation
using fusebox (reuse forms)?
thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists