Ok, I need some help here. I have a form with a couple of dropdown menus that are populated dynamically. The uses needs to select an option from the first menu before the second is populated with options. I have successfully complete this with an "OnChange" event and everything works fine. The problem comes when I added the Submit button and the code to actually insert all the data into the database. Now every time the "OnChange" event happens the from tries to insert the incomplete data into the database. I would greatly appreciate your help in finding a solution to this problem. Below is my code. Thanks.
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form">
<cfquery datasource="ExerciseWebApplication">
INSERT INTO Users ("Lookup to RankID", FirstName, LastName, "Lookup to GroupID", "Lookup to UnitID", DutyPhone, HomePhone, DEROS, EmailAddress, EetTrainingDate, "Lookup to BadgeTypeID", BadgeNumber, GBSQualified, GBSTrainingDate, "Lookup to AccessLevelID", UserName)
VALUES (
<cfif IsDefined("FORM.RankID") AND #FORM.RankID# NEQ "">
#FORM.RankID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.FirstName") AND #FORM.FirstName# NEQ "">
'#FORM.FirstName#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ "">
'#FORM.LastName#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.GroupID") AND #FORM.GroupID# NEQ "">
#FORM.GroupID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.UnitID") AND #FORM.UnitID# NEQ "">
#FORM.UnitID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.DutyPhone") AND #FORM.DutyPhone# NEQ "">
'#FORM.DutyPhone#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.HomePhone") AND #FORM.HomePhone# NEQ "">
'#FORM.HomePhone#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.DEROS") AND #FORM.DEROS# NEQ "">
'#FORM.DEROS#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.EmailAddress") AND #FORM.EmailAddress# NEQ "">
'#FORM.EmailAddress#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.EetTrainingDate") AND #FORM.EetTrainingDate# NEQ "">
'#FORM.EetTrainingDate#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.BadgeTypeID") AND #FORM.BadgeTypeID# NEQ "">
#FORM.BadgeTypeID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.BadgeNumber") AND #FORM.BadgeNumber# NEQ "">
#FORM.BadgeNumber#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.GBSQualified")>
'Y'
<cfelse>
'N'
</cfif>
,
<cfif IsDefined("FORM.GBSTrainingDate") AND #FORM.GBSTrainingDate# NEQ "">
'#FORM.GBSTrainingDate#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.AccessLevelID") AND #FORM.AccessLevelID# NEQ "">
#FORM.AccessLevelID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.UserName") AND #FORM.UserName# NEQ "">
'#FORM.UserName#'
<cfelse>
NULL
</cfif>
)
</cfquery>
<cflocation url="registration_success.cfm">
</cfif>[/color red]
<cfquery name="GetRanks" datasource="#DSN#">
SELECT RankID, RankShort
FROM Ranks
</cfquery>
<cfquery name="GetGroups" datasource="#DSN#">
SELECT GroupID, GroupShort
FROM Groups
</cfquery>
<cfquery name="GetBadgeTypes" datasource="#DSN#">
SELECT BadgeTypeID, BadgeTypeShort
FROM BadgeTypes
</cfquery>
<cfquery name="GetAccessLevels" datasource="#DSN#">
SELECT AccessLevelID, AccessLevel
FROM AccessLevels
</cfquery>
<cfquery name="GetMonths" datasource="ExerciseWebApplication">
SELECT Month, MonthShort
FROM Months
</cfquery>
<cfquery name="GetYears" datasource="ExerciseWebApplication">
SELECT Years
FROM Years
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>User Registration</title>
<link href="/Exercise Web Application/CssFiles/SiteStyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form" name="form" method="POST" action="<cfoutput>#CurrentPage#</cfoutput>">
<table width="80%" id="UserInformation">
<tr>
<td><label class="InputLabel">Rank:</label></td>
<td><select name="RankID">
<cfoutput query="GetRanks">
<option value="#GetRanks.RankID#" <cfif (isDefined("form.RankID") AND form.RankID EQ GetRanks.RankID)>selected</cfif>>#GetRanks.RankShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">First Name:</label></td>
<td><input name="FirstName" type="text" <cfif (isDefined("form.FirstName") AND form.FirstName NEQ "")>
value="<cfoutput>#form.FirstName#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Last Name:</label></td>
<td><input name="LastName" type="text" <cfif (isDefined("form.LastName") AND form.LastName NEQ "")>
value="<cfoutput>#form.LastName#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Group:</label></td>
<td><select name="GroupID" onChange="this.form.submit()">
<option value=""></option>
<cfoutput query="GetGroups">
<option value="#GetGroups.GroupID#" <cfif (isDefined("form.GroupID") AND form.GroupID EQ GetGroups.GroupID)>selected</cfif>>#GetGroups.GroupShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Unit:</label></td>
<td><select name="UnitID" <cfif (isDefined("form.GroupID") AND form.GroupID NEQ "")>
onChange="this.form.submit()"
<cfelse>
disabled="disabled" onChange="this.form.submit()"
</cfif>>
<cfif (isDefined("form.GroupID") AND #form.GroupID# NEQ "")>
<cfquery name="GetUnitsFromGroup" datasource="#DSN#">
SELECT UnitID, UnitShort
FROM Units
WHERE GroupID = #form.GroupID#
</cfquery>
<cfoutput query="GetUnitsFromGroup">
<option value="#GetUnitsFromGroup.UnitID#" <cfif (isDefined("form.UnitID") AND form.UnitID EQ GetUnitsFromGroup.UnitID)>selected</cfif>>#GetUnitsFromGroup.UnitShort#</option>
</cfoutput>
<cfelse>
<option selected="selected">Please Select a Group</option>
</cfif>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Duty Phone:</label></td>
<td><input name="DutyPhone" type="text" <cfif (isDefined("form.DutyPhone") AND form.DutyPhone NEQ "")>
value="<cfoutput>#form.DutyPhone#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Home Phone:</label></td>
<td><input name="HomePhone" type="text" <cfif (isDefined("form.HomePhone") AND form.HomePhone NEQ "")>
value="<cfoutput>#form.HomePhone#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">DEROS:</label></td>
<td><select name="DEROSMonth">
<cfoutput query="GetMonths">
<option value="#GetMonths.MonthShort#" <cfif (isDefined("form.DEROSMonth") AND form.DEROSMonth EQ GetMonths.MonthShort)>selected</cfif>>#GetMonths.Month#</option>
</cfoutput>
</select>
<select name="DEROSYear">
<cfoutput query="GetYears">
<option value="#GetYears.Years#" <cfif (isDefined("form.DEROSYear") AND form.DEROSYear EQ GetYears.Years)>selected</cfif>>#GetYears.Years#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Email Address:</label></td>
<td><input name="EmailAddress" type="text" <cfif (isDefined("form.EmailAddress") AND form.EmailAddress NEQ "")>
value="<cfoutput>#form.EmailAddress#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">EET Training Date:</label></td>
<td><input name="EetTrainingDate" type="text" <cfif (isDefined("form.EetTrainingDate") AND form.EetTrainingDate NEQ "")>
value="<cfoutput>#form.EetTrainingDate#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255" onfocus="if(this.value=='mm/dd/yyyy')this.value='';" value="mm/dd/yyyy" maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Badge Type:</label></td>
<td><select name="BadgeTypeID">
<cfoutput query="GetBadgeTypes">
<option value="#GetBadgeTypes.BadgeTypeID#" <cfif (isDefined("form.BadgeTypeID") AND form.BadgeTypeID EQ GetBadgeTypes.BadgeTypeID)>selected</cfif>>#GetBadgeTypes.BadgeTypeShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Badge Number:</label></td>
<td><input name="BadgeNumber" type="text" <cfif (isDefined("form.BadgeNumber") AND form.BadgeNumber NEQ "")>
value="<cfoutput>#form.BadgeNumber#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">GBS Qualified?:</label></td>
<td><p>
<label class="InputLabel">
<input name="GBSQualified" type="radio" value="Yes"
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
checked="checked" onClick="this.form.submit()"
<cfelse>
onClick="this.form.submit()"
</cfif>/>
Yes</label>
<br />
<label class="InputLabel">
<input name="GBSQualified" type="radio" value="No"
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "No")>
checked="checked" onClick="this.form.submit()"
<cfelse>
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
onClick="this.form.submit()"
<cfelse>
checked="checked" onClick="this.form.submit()"
</cfif>
</cfif>/>
No</label>
<br />
</p></td>
</tr>
<tr>
<td><label class="InputLabel">GBS Training Date:</label></td>
<td><input name="GBSTrainingDate" type="text" <cfif (isDefined("form.GBSTrainingDate") AND form.GBSTrainingDate NEQ "")>
value="<cfoutput>#form.GBSTrainingDate#</cfoutput>" maxlength="255"
<cfelse>
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
onfocus="if(this.value=='mm/dd/yyyy')this.value='';" value="mm/dd/yyyy"
<cfelse>
value="Not GBS Qualified" disabled="disabled"
</cfif>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Access Level:</label></td>
<td><select name="AccessLevelID">
<cfoutput query="GetAccessLevels">
<option value="#GetAccessLevels.AccessLevelID#" <cfif (isDefined("form.AccessLevelID") AND form.AccessLevelID EQ GetAccessLevels.AccessLevelID)>selected</cfif>>#GetAccessLevels.AccessLevel#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><div align="right">
<input name="Submit" type="submit" value="Submit" />
</div></td>
<td><input name="Clear" type="reset" value="Clear" /></td>
</tr>
</table>
<cfset DEROS = "form.DEROSMonth""-""form.DEROSYear">
<cfset UserName = "form.FirstName"".""form.LastName">
<input name="DEROS" type="hidden" value="#DEROS#" />
<input name="UserName" type="hidden" value="#UserName#" />
<input type="hidden" name="MM_InsertRecord" value="form">[/color red]
</form>
</body>
</html>
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form">
<cfquery datasource="ExerciseWebApplication">
INSERT INTO Users ("Lookup to RankID", FirstName, LastName, "Lookup to GroupID", "Lookup to UnitID", DutyPhone, HomePhone, DEROS, EmailAddress, EetTrainingDate, "Lookup to BadgeTypeID", BadgeNumber, GBSQualified, GBSTrainingDate, "Lookup to AccessLevelID", UserName)
VALUES (
<cfif IsDefined("FORM.RankID") AND #FORM.RankID# NEQ "">
#FORM.RankID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.FirstName") AND #FORM.FirstName# NEQ "">
'#FORM.FirstName#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ "">
'#FORM.LastName#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.GroupID") AND #FORM.GroupID# NEQ "">
#FORM.GroupID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.UnitID") AND #FORM.UnitID# NEQ "">
#FORM.UnitID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.DutyPhone") AND #FORM.DutyPhone# NEQ "">
'#FORM.DutyPhone#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.HomePhone") AND #FORM.HomePhone# NEQ "">
'#FORM.HomePhone#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.DEROS") AND #FORM.DEROS# NEQ "">
'#FORM.DEROS#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.EmailAddress") AND #FORM.EmailAddress# NEQ "">
'#FORM.EmailAddress#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.EetTrainingDate") AND #FORM.EetTrainingDate# NEQ "">
'#FORM.EetTrainingDate#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.BadgeTypeID") AND #FORM.BadgeTypeID# NEQ "">
#FORM.BadgeTypeID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.BadgeNumber") AND #FORM.BadgeNumber# NEQ "">
#FORM.BadgeNumber#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.GBSQualified")>
'Y'
<cfelse>
'N'
</cfif>
,
<cfif IsDefined("FORM.GBSTrainingDate") AND #FORM.GBSTrainingDate# NEQ "">
'#FORM.GBSTrainingDate#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.AccessLevelID") AND #FORM.AccessLevelID# NEQ "">
#FORM.AccessLevelID#
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.UserName") AND #FORM.UserName# NEQ "">
'#FORM.UserName#'
<cfelse>
NULL
</cfif>
)
</cfquery>
<cflocation url="registration_success.cfm">
</cfif>[/color red]
<cfquery name="GetRanks" datasource="#DSN#">
SELECT RankID, RankShort
FROM Ranks
</cfquery>
<cfquery name="GetGroups" datasource="#DSN#">
SELECT GroupID, GroupShort
FROM Groups
</cfquery>
<cfquery name="GetBadgeTypes" datasource="#DSN#">
SELECT BadgeTypeID, BadgeTypeShort
FROM BadgeTypes
</cfquery>
<cfquery name="GetAccessLevels" datasource="#DSN#">
SELECT AccessLevelID, AccessLevel
FROM AccessLevels
</cfquery>
<cfquery name="GetMonths" datasource="ExerciseWebApplication">
SELECT Month, MonthShort
FROM Months
</cfquery>
<cfquery name="GetYears" datasource="ExerciseWebApplication">
SELECT Years
FROM Years
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>User Registration</title>
<link href="/Exercise Web Application/CssFiles/SiteStyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form" name="form" method="POST" action="<cfoutput>#CurrentPage#</cfoutput>">
<table width="80%" id="UserInformation">
<tr>
<td><label class="InputLabel">Rank:</label></td>
<td><select name="RankID">
<cfoutput query="GetRanks">
<option value="#GetRanks.RankID#" <cfif (isDefined("form.RankID") AND form.RankID EQ GetRanks.RankID)>selected</cfif>>#GetRanks.RankShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">First Name:</label></td>
<td><input name="FirstName" type="text" <cfif (isDefined("form.FirstName") AND form.FirstName NEQ "")>
value="<cfoutput>#form.FirstName#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Last Name:</label></td>
<td><input name="LastName" type="text" <cfif (isDefined("form.LastName") AND form.LastName NEQ "")>
value="<cfoutput>#form.LastName#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Group:</label></td>
<td><select name="GroupID" onChange="this.form.submit()">
<option value=""></option>
<cfoutput query="GetGroups">
<option value="#GetGroups.GroupID#" <cfif (isDefined("form.GroupID") AND form.GroupID EQ GetGroups.GroupID)>selected</cfif>>#GetGroups.GroupShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Unit:</label></td>
<td><select name="UnitID" <cfif (isDefined("form.GroupID") AND form.GroupID NEQ "")>
onChange="this.form.submit()"
<cfelse>
disabled="disabled" onChange="this.form.submit()"
</cfif>>
<cfif (isDefined("form.GroupID") AND #form.GroupID# NEQ "")>
<cfquery name="GetUnitsFromGroup" datasource="#DSN#">
SELECT UnitID, UnitShort
FROM Units
WHERE GroupID = #form.GroupID#
</cfquery>
<cfoutput query="GetUnitsFromGroup">
<option value="#GetUnitsFromGroup.UnitID#" <cfif (isDefined("form.UnitID") AND form.UnitID EQ GetUnitsFromGroup.UnitID)>selected</cfif>>#GetUnitsFromGroup.UnitShort#</option>
</cfoutput>
<cfelse>
<option selected="selected">Please Select a Group</option>
</cfif>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Duty Phone:</label></td>
<td><input name="DutyPhone" type="text" <cfif (isDefined("form.DutyPhone") AND form.DutyPhone NEQ "")>
value="<cfoutput>#form.DutyPhone#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Home Phone:</label></td>
<td><input name="HomePhone" type="text" <cfif (isDefined("form.HomePhone") AND form.HomePhone NEQ "")>
value="<cfoutput>#form.HomePhone#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">DEROS:</label></td>
<td><select name="DEROSMonth">
<cfoutput query="GetMonths">
<option value="#GetMonths.MonthShort#" <cfif (isDefined("form.DEROSMonth") AND form.DEROSMonth EQ GetMonths.MonthShort)>selected</cfif>>#GetMonths.Month#</option>
</cfoutput>
</select>
<select name="DEROSYear">
<cfoutput query="GetYears">
<option value="#GetYears.Years#" <cfif (isDefined("form.DEROSYear") AND form.DEROSYear EQ GetYears.Years)>selected</cfif>>#GetYears.Years#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Email Address:</label></td>
<td><input name="EmailAddress" type="text" <cfif (isDefined("form.EmailAddress") AND form.EmailAddress NEQ "")>
value="<cfoutput>#form.EmailAddress#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">EET Training Date:</label></td>
<td><input name="EetTrainingDate" type="text" <cfif (isDefined("form.EetTrainingDate") AND form.EetTrainingDate NEQ "")>
value="<cfoutput>#form.EetTrainingDate#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255" onfocus="if(this.value=='mm/dd/yyyy')this.value='';" value="mm/dd/yyyy" maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Badge Type:</label></td>
<td><select name="BadgeTypeID">
<cfoutput query="GetBadgeTypes">
<option value="#GetBadgeTypes.BadgeTypeID#" <cfif (isDefined("form.BadgeTypeID") AND form.BadgeTypeID EQ GetBadgeTypes.BadgeTypeID)>selected</cfif>>#GetBadgeTypes.BadgeTypeShort#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><label class="InputLabel">Badge Number:</label></td>
<td><input name="BadgeNumber" type="text" <cfif (isDefined("form.BadgeNumber") AND form.BadgeNumber NEQ "")>
value="<cfoutput>#form.BadgeNumber#</cfoutput>" maxlength="255"
<cfelse>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">GBS Qualified?:</label></td>
<td><p>
<label class="InputLabel">
<input name="GBSQualified" type="radio" value="Yes"
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
checked="checked" onClick="this.form.submit()"
<cfelse>
onClick="this.form.submit()"
</cfif>/>
Yes</label>
<br />
<label class="InputLabel">
<input name="GBSQualified" type="radio" value="No"
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "No")>
checked="checked" onClick="this.form.submit()"
<cfelse>
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
onClick="this.form.submit()"
<cfelse>
checked="checked" onClick="this.form.submit()"
</cfif>
</cfif>/>
No</label>
<br />
</p></td>
</tr>
<tr>
<td><label class="InputLabel">GBS Training Date:</label></td>
<td><input name="GBSTrainingDate" type="text" <cfif (isDefined("form.GBSTrainingDate") AND form.GBSTrainingDate NEQ "")>
value="<cfoutput>#form.GBSTrainingDate#</cfoutput>" maxlength="255"
<cfelse>
<cfif (isDefined("form.GBSQualified") AND form.GBSQualified EQ "Yes")>
onfocus="if(this.value=='mm/dd/yyyy')this.value='';" value="mm/dd/yyyy"
<cfelse>
value="Not GBS Qualified" disabled="disabled"
</cfif>
maxlength="255"
</cfif>/></td>
</tr>
<tr>
<td><label class="InputLabel">Access Level:</label></td>
<td><select name="AccessLevelID">
<cfoutput query="GetAccessLevels">
<option value="#GetAccessLevels.AccessLevelID#" <cfif (isDefined("form.AccessLevelID") AND form.AccessLevelID EQ GetAccessLevels.AccessLevelID)>selected</cfif>>#GetAccessLevels.AccessLevel#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<td><div align="right">
<input name="Submit" type="submit" value="Submit" />
</div></td>
<td><input name="Clear" type="reset" value="Clear" /></td>
</tr>
</table>
<cfset DEROS = "form.DEROSMonth""-""form.DEROSYear">
<cfset UserName = "form.FirstName"".""form.LastName">
<input name="DEROS" type="hidden" value="#DEROS#" />
<input name="UserName" type="hidden" value="#UserName#" />
<input type="hidden" name="MM_InsertRecord" value="form">[/color red]
</form>
</body>
</html>