Error Occurred While Processing Request Element REQUESTOR is undefined in FORM.
I am taking over for someone that coded a page a long time ago and is no longer at our office. I am having a heck of a time figuring out why i keep getting this error. This seemed to work yesterday and not sure what changes were made but when i go to submit this page i get this error and can't figure it out. any help would be greatly appreciated it.
<!--- Get the info needed --->
<cfquery name="Requestor" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
ORDER BY v_employeeinformation.Last_Name
</cfquery>
<!---
<cfquery name="Recordset1" datasource="" username="" password="">
SELECT * FROM v_helpdesk
</cfquery>
--->
<cfquery name="OITAssigned" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>
<cfquery name="OITStaff" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>
<cfquery name="Recordset3" datasource="" username="" password="">
SELECT * FROM v_helpdesklists ORDER BY v_helpdesklists.Category
</cfquery>
<!--- End Getting the info needed --->
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "form1">
<!--- Include the CFIF to insert right category --->
<CFINCLUDE template="cfif_category.cfm">
<cfquery datasource="">
UPDATE v_helpdeskfindnames SET Summary=
<cfif IsDefined("FORM.Summary") AND #FORM.Summary# NEQ "">
'#FORM.Summary#'
<cfelse>
NULL
</cfif>
, Requestor=#FORM.Requestor#, OIT_Staff=#FORM.OIT_Staff#, Priority=
<cfif IsDefined("FORM.Priority") AND #FORM.Priority# NEQ "">
'#FORM.Priority#'
<cfelse>
NULL
</cfif>
, Open_Date=
<cfif IsDefined("FORM.Open_Date") AND #FORM.Open_Date# NEQ "">
'#FORM.Open_Date#'
<cfelse>
NULL
</cfif>
, Min_Spent=
<cfif IsDefined("FORM.Min_Spent") AND #FORM.Min_Spent# NEQ "">
'#FORM.Min_Spent#'
<cfelse>
NULL
</cfif>
, OIT_Time_Spent=
<cfif IsDefined("FORM.OIT_Time_Spent") AND #FORM.OIT_Time_Spent# NEQ "">
'#FORM.OIT_Time_Spent#'
<cfelse>
NULL
</cfif>
, Close_Date=
<cfif IsDefined("FORM.Close_Date") AND #FORM.Close_Date# NEQ "">
'#FORM.Close_Date#'
<cfelse>
NULL
</cfif>
, Description=
<cfif IsDefined("FORM.Description") AND #FORM.Description# NEQ "">
'#FORM.Description#'
<cfelse>
NULL
</cfif>
, Solution=
<cfif IsDefined("FORM.Solution") AND #FORM.Solution# NEQ "">
'#FORM.Solution#'
<cfelse>
NULL
</cfif>
, Type=
<cfif IsDefined("FORM.Type") AND #FORM.Type# NEQ "">
'#FORM.Type#'
<cfelse>
NULL
</cfif>
, Category=
<cfif IsDefined("FORM.Category") AND #FORM.Category# NEQ "">
'#FORM.Category#'
<cfelse>
NULL
</cfif>
WHERE Ticket_Num=#form.Ticket_Num#
</cfquery>
<cflocation url="editticketaction.cfm">
</cfif>
<cfquery name="Recordset1" datasource="" username="" password="">
SELECT *
FROM v_helpdeskfindnames
WHERE v_helpdeskfindnames.Ticket_Num LIKE '#url.Ticket_Num#'
</cfquery>
<!--- sample code for select
<select name="select" name="userName">
<cfoutput query="getUser">
<option value="#id_user_pk#" <cfif #URL.idUser# EQ #id_user_pk#>selected="selected"</cfif>>#name#</option>
</cfoutput>
--->
<html>
<head>
<title>Edit Ticket - OIT Helpdesk Tracker</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- American format mm/dd/yyyy -->
<script language="JavaScript" src="calendar2.js"></script><!-- Date only with year scrolling -->
</head>
<body>
<cfset currentdate = DateFormat(now(), 'mmm dd, yyyy')>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="Images/heading.gif" width="332" height="31"></td>
<td> </td>
</tr>
<tr>
<td height="29" colspan="2"> <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="33" bgcolor="91db5a">
<TABLE width="100%" height=33 border=0 cellPadding=0 cellSpacing=0 bgColor=#91db5a>
<TBODY>
<TR>
<TD width="89" noWrap bgColor=#c8edad><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>
<a href="index.cfm"> <FONT color=black>Home</FONT></a>
</STRONG></font></TD>
<TD width="348" noWrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>
<A
href="http://www.visualpharm.com/faq.html"></A> </STRONG></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>
<A
href="http://www.visualpharm.com/overview.html"></A> </STRONG></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>
<A
href="http://www.visualpharm.com/contacts.html"></A> </STRONG></font></TD>
<td width="332"><div align="right"><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28%" bgcolor="#f3fced"> </td>
<td width="72%" bgcolor="#e6f9d8"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="15"> </td>
<td> </td>
</tr>
<tr>
<td height="138" colspan="2">
<table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td colspan="3" valign="bottom">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><div align="center">
<form method="post" name="form1" action="<cfoutput>#CurrentPage#</cfoutput>">
<table width="100%" border="0">
<tr>
<td height="45" colspan="4"><div align="center"><img src="Images/editticketheading.gif" width="140" height="33"></div></td>
</tr>
<tr>
<td width="14%"><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Ticket Number </font></strong></font></div></td>
<td width="34%"><cfoutput><strong><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.Ticket_Num#</font></strong></cfoutput></td>
<td width="15%"><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Ticket Creator</font></strong></font></div></td>
<td width="37%"><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.ITStaffPreferredName# #Recordset1.ITStaffLastName#</font></cfoutput></td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Summary</font></strong></font></div></td>
<td><input type="text" name="Summary" value="<cfoutput>#Recordset1.Summary#</cfoutput>" size="32"></td>
<td width="20%"><strong><font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">OIT Staff Assigned</font></strong></td>
<td><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.ITAssignedPreferredName# #Recordset1.ITAssignedLastName#</font></cfoutput></td>
</tr>
<tr>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Requestor</font></strong></font></div></td>
<td><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.RequestorPreferredName# #Recordset1.RequestorLastName#</font></cfoutput></td>
<!--
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Type</font></strong></font></div></td>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><cfoutput>#Recordset1.Type#</cfoutput></font></strong></font>
-->
</td>
<td>
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Priority</font></strong></font></div></td>
<td>
<select name="Priority" required="yes">
<option value="High" <cfif #Recordset1.Priority# EQ "High">selected="selected"</cfif>>High</option>
<option value="Medium" <cfif #Recordset1.Priority# EQ "Medium">selected="selected"</cfif>>Medium</option>
<option value="Low" <cfif #Recordset1.Priority# EQ "Low">selected="selected"</cfif>>Low</option>
</select>
</td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Category</font></strong></font></div></td>
<td>
<select name="Category" name="Category1">
<cfoutput query="Recordset3">
<option value="#Category#" <cfif #Recordset1.Category# EQ #Category#>selected="selected"</cfif>>#Recordset3.Category#</option>
</cfoutput>
</td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Date Requested</font></strong></font></div></td>
<td><input type="text" name="Open_Date" value="<cfoutput>#DateFormat(Recordset1.Open_Date, 'mm/dd/yyyy')#</cfoutput>" size="32"> <a href="javascript:cal4.popup();"><img src="Images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
</tr>
<tr>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Minutes Spent</font></div></td>
<td><input type="text" name="Min_Spent" value="<cfoutput>#Recordset1.Min_Spent#</cfoutput>" size="5"></td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Date Completed </font></strong></font></div></td>
<td><input type="text" name="Close_Date" value="<cfoutput>#DateFormat(Recordset1.Close_Date, 'mm/dd/yyyy')#</cfoutput>" size="32"> <a href="javascript:cal5.popup();"><img src="Images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><strong><font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">OIT Time Spent</font></strong></td>
<td><input type="text" name="OIT_Time_Spent" value="<cfoutput>#Recordset1.OIT_Time_Spent#</cfoutput>" size="5"> <font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">(minutes)</font> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Problem</font></strong></font></div></td>
<td> </td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Solution</font></strong></font></div></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><textarea name="Description" cols="40" rows="8"><cfoutput>#Recordset1.Description#</cfoutput></textarea></td>
<td> </td>
<td><textarea name="Solution" cols="40" rows="8"><cfoutput>#Recordset1.Solution#</cfoutput></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td><input type="submit" value="Update record"></td>
</tr>
</table>
<input type="hidden" name="MM_UpdateRecord" value="form1">
<br>
</form>
<script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
var cal4 = new calendar2(document.form1.Open_Date);
cal4.year_scroll = true;
cal4.time_comp = false;
var cal5 = new calendar2(document.form1.Close_Date);
cal5.year_scroll = true;
cal5.time_comp = false;
//-->
</script>
<p> </p>
</div></td>
</tr>
</table></td>
</tr>
</table>
<br>
<div align="center"></div>
</td>
</tr>
<tr bgcolor="#e6f9d8">
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
