HI,
I am trying to create a cold fusion update page that will work with a postgresql database. I have 2 primary keys in the table: order_id and accountnumber. order_id is a sequence/autonumber and its default is to increment the last value of order_id. I think this is whats causing my problem. My insert form works using this default but everytime I submit cf just hangs and eventually kicks me off of the server. If this is my problem ( iam open to any other ideas) how could I fix this where my insert form won't be messed up. Here is what the default of order_id looks like: nextval('seq_ordersplaced') this is what increments order_id, if I take this out it will mess up my insert form but possibly fix my update. Here is my code for the update:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<CFQUERY name="UpdateRecord" datasource="supply">
SELECT *
FROM ordersplaced
<!---populate the form with the record that matches the search criteria from the main page--->
WHERE order_id=#URL.orderid#
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Supplies Orders Placed Form</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
//begin validation function
function validateInfo()
{
//declare variables to hold input values
var _accountname = document.updateordersplacedform.accountname.value;
var _tubes = document.updateordersplacedform.tubes.value;
var _needles = document.updateordersplacedform.needles.value;
var _butterfly = document.updateordersplacedform.butterfly.value;
var _sterilecontainer = document.updateordersplacedform.sterilecontainer.value;
var _tissuecontainer = document.updateordersplacedform.tissuecontainer.value;
var _sharps = document.updateordersplacedform.sharps.value;
var _gloves = document.updateordersplacedform.gloves.value;
var _misc = document.updateordersplacedform.misc.value;
//verify that certain input fields are filled in
if(_accountname.toString() ==""
{
alert("Please enter an Account Name."
updateordersplacedform.accountname.focus();
return false;
}
if(_tubes.toString() ==""
{
alert("Please enter a numeric value for Tubes EX.(0 or 10)."
updateordersplacedform.tubes.focus();
return false;
}
if(_needles.toString() ==""
{
alert("Please enter a numeric value for Needles EX.(0 or 10)."
updateordersplacedform.needles.focus();
return false;
}
if(_butterfly.toString() ==""
{
alert("Please enter a numeric value for Butterfly EX.(0 or 10)."
updateordersplacedform.butterfly.focus();
return false;
}
if (_sterilecontainer.toString() ==""
{
alert("Please enter a numeric value for Sterile Container EX.(0 or 10)."
updateordersplacedform.sterilecontainer.focus();
return false;
}
if (_tissuecontainer.toString() ==""
{
alert("Please enter a numeric value for Tissue Container EX.(0 or 10)."
updateordersplacedform.tissuecontainer.focus();
return false;
}
if (_sharps.toString() ==""
{
alert("Please enter a numeric value for Sharps EX.(0 or 10)."
updateordersplacedform.sharps.focus();
return false;
}
if (_gloves.toString() ==""
{
alert("Please enter a numeric value for Gloves EX.(0 or 10)."
updateordersplacedform.gloves.focus();
return false;
}
if(_misc.toString() ==""
{
alert("Please enter a numeric value for Misc EX.(0 or 10)."
updateordersplacedform.misc.focus();
return false;
}
}
</SCRIPT>
</HEAD>
<BODY bgcolor="cccccc">
<TABLE cellspacing="0" cellpadding="0">
<TR>
<TD><FONT face="ARIAL" size="6"><B>Orders Placed</B></FONT>
</TD>
<TD>
<!---Link back to main page--->
<A href="mainsuppliesdbpage.cfm"><IMG src="mainpage.gif" border="0"></A>
</TD>
</TR>
<TR>
<TD>
<CFOUTPUT>
<FONT size="2" face="Arial">Please use your browsers "reload" function to view the most recent accounts.
You have updated the information in the Supplies Database.</FONT>
</CFOUTPUT>
<CFOUTPUT query="UpdateRecord">
<FORM name="updateordersplacedform" action="updateordersplaceddata.cfm" method="Post"> <!---Order ID: - hidden--->
<INPUT type="hidden" name="order_id" value="#order_id#"><BR>
<INPUT type="text" name="accountnumber" value="#accountnumber#"><BR>
<FONT face="arial" size="3">Account Name:</FONT>
<INPUT type="Text" name="accountname" value="#accountname#" size="50" maxlength="50"><BR><FONT face="ARIAL" size="3">Tubes:</FONT>
<INPUT type="Text" name="tubes" value="#tubes#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Needles:</FONT>
<INPUT type="Text" name="needles" value="#needles#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Butterfly:</FONT>
<INPUT type="Text" name="butterfly" value="#butterfly#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Sterile Containers:</FONT>
<INPUT type="Text" name="sterilecontainer" value="#sterilecontainer#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Tissue Container:</FONT>
<INPUT type="Text" name="tissuecontainer" value="#tissuecontainer#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Sharps:</FONT>
<INPUT type="Text" name="sharps" value="#sharps#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Gloves:</FONT>
<INPUT type="Text" name="gloves" value="#gloves#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Misc:</FONT>
<INPUT type="Text" name="misc" value="#misc#" size="10" maxlength="50"><BR><BR>
dateentered:<INPUT type="text" name="dateentered" value="#dateentered#" size="8" maxlength="8">
orderdate:<INPUT type="text" name="orderdate" value="#orderdate#" size="8" maxlength="8">
</TD>
</TR>
<TR>
<TD>
<!---Submit/Clear buttons--->
<A href="javascript: document.updateordersplacedform.submit()"><IMG src="submit.gif" onClick="return validateInfo();" border="0"></A>
<A href="javascript: document.updateordersplacedform.reset()"><IMG src="clearchanges.gif" border="0"></A>
</TD>
</TR>
</TABLE>
</FORM>
</CFOUTPUT>
</BODY>
</HTML>
Here is my insert page code:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!---<CFQUERY name="getval" datasource="supply">
Select max(order_id) as max_id from ordersplaced;
</CFQUERY>--->
<HTML>
<HEAD>
<TITLE>Supplies Database Place Order Form</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
//begin is numeric function
function isNum(passedVal)
{
if(passedVal ==""
{
return false
}
for (i=0; i<passedVal.length; i++)
{
if (passedVal.charAt(i) < "0"
{
return false
}
if (passedVal.charAt(i) > "9"
{
return false
}
}
return true
}//end is numeric function
//begin is date function - This function checks to see if the
//date is in the correct format.
function isDate(date)
{
if (date.length != 10)
{
alert("Please enter an Order Date in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if (date.charAt(2) != "/"
{
alert("Please enter a foward slash '/' between month and day in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if (date.charAt(5) != "/"
{
alert("Please enter a forward slash'/' between day and year in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(0,2) < "01" || (date.substring(0,2) > "12")
{
alert("Please enter a valid month EX.(01 to 12)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(3,5) < "01" || (date.substring(3,5) > "31")
{
alert("Please enter a valid day EX.(01 to 31)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(6,10) < "0000" || (date.substring(6,10) > "9999")
{
alert("Please enter a valid year EX.(2000)."
addordersplacedform.orderdate.focus();
return false;
}
}
//end is date function
//begin main validation function
function validateInfo()
{
//declare variables to hold input values
var _accountnumber = document.addordersplacedform.accountnumber.value;
var _accountname = document.addordersplacedform.accountname.value;
var _orderdate = document.addordersplacedform.orderdate.value;
var _tubes = document.addordersplacedform.tubes.value;
var _needles = document.addordersplacedform.needles.value;
var _butterfly = document.addordersplacedform.butterfly.value;
var _sterilecontainer = document.addordersplacedform.sterilecontainer.value;
var _tissuecontainer = document.addordersplacedform.tissuecontainer.value;
var _sharps = document.addordersplacedform.sharps.value;
var _gloves = document.addordersplacedform.gloves.value;
var _misc = document.addordersplacedform.misc.value;
//verify that certain input fields are filled in
if(isNum(_accountnumber) == false)
{
alert("Please enter a numeric Account Number."
addordersplacedform.accountnumber.focus();
return false;
}
if(_accountname.toString() ==""
{
alert("Please enter an Account Name."
addordersplacedform.accountname.focus();
return false;
}
if(_orderdate.toString() ==""
{
alert("Please enter an Order Date in the format (mm/dd/yy)."
addordersplacedform.orderdate.focus();
return false;
}
//calls function isDate to check date validity
if(isDate(_orderdate)== false)
{
addordersplacedform.orderdate.focus();
return false;
}
if(_tubes.toString() ==""
{
alert("Please enter a numeric value for Tubes."
addordersplacedform.tubes.focus();
return false;
}
if(_needles.toString() ==""
{
alert("Please enter a numeric value for Needles."
addordersplacedform.needles.focus();
return false;
}
if(_butterfly.toString() ==""
{
alert("Please enter a numeric value for Butterfly."
addordersplacedform.butterfly.focus();
return false;
}
if (_sterilecontainer.toString() ==""
{
alert("Please enter a numeric value for Sterile Container."
addordersplacedform.sterilecontainer.focus();
return false;
}
if (_tissuecontainer.toString() ==""
{
alert("Please enter a numeric value for Tissue Container."
addordersplacedform.tissuecontainer.focus();
return false;
}
if (_sharps.toString() ==""
{
alert("Please enter a numeric value for Sharps."
addordersplacedform.sharps.focus();
return false;
}
if (_gloves.toString() ==""
{
alert("Please enter a numeric value for Gloves."
addordersplacedform.gloves.focus();
return false;
}
if(_misc.toString() ==""
{
alert("Please enter a numeric value for Misc."
addordersplacedform.misc.focus();
return false;
}
}
//end validation function
</SCRIPT>
</HEAD>
<!---Get Date--->
<CFSET dateentered = NOW()>
<!---<CFSET max_id = getval.max_id + 1>--->
<BODY bgcolor="cccccc">
<TABLE height="100%" width="100%" cellspacing="3" cellpadding="5">
<TR>
<TD><FONT face="arial" size="6"><B>Orders Placed</B></FONT>
</TD>
<TD>
<!---Link back to main page--->
<A href="mainsuppliesdbpage.cfm"><IMG src="mainpage.gif" border="0"></A>
</TD>
</TR>
<TR>
<TD>
<FORM name="addordersplacedform" action="postordersplaceddata.cfm" method="Post">
<!---<cfoutput>--->
<!---<INPUT type="hidden" name="order_id" size="8" maxlength="8" value="#order_id#">---><BR><FONT face="arial" size="3">Account Number:</FONT>
<!---</cfoutput>--->
<INPUT type="text" name="accountnumber" size="8" maxlength="8"><BR><FONT face="arial" size="3">Account Name:</FONT>
<INPUT type="text" name="accountname" size="50" maxlength="50"><BR><FONT face="arial" size="3">Order Date:</FONT>
<INPUT type="Text" name="orderdate" size="10" maxlength="50"><BR><FONT face="arial" size="3">Tubes:</FONT>
<INPUT type="Text" name="tubes" size="10" maxlength="50"><BR><FONT face="arial" size="3">Needles:</FONT>
<INPUT type="Text" name="needles" size="10" maxlength="50"><BR><FONT face="arial" size="3">Butterfly:</FONT>
<INPUT type="Text" name="butterfly" size="10" maxlength="50"><BR><FONT face="arial" size="3">Sterile Containers:</FONT>
<iNPUT type="Text" name="sterilecontainer" size="10" maxlength="50"><BR><FONT face="arial" size="3">Tissue Container:</FONT>
<INPUT type="Text" name="tissuecontainer" size="10" maxlength="50"><BR><FONT face="arial" size="3">Sharps:</FONT>
<INPUT type="Text" name="sharps" size="10" maxlength="50"><BR><FONT face="arial" size="3">Gloves:</FONT>
<INPUT type="Text" name="gloves" size="10" maxlength="50"><BR><FONT face="arial" size="3">Misc:</FONT>
<INPUT type="Text" name="misc" size="10" maxlength="50"><BR><!---Date Entered: - hidden--->
<CFOUTPUT>
<INPUT type="hidden" name="dateentered" value="#dateentered#"><BR>
</CFOUTPUT>
</TD>
</TR>
<TR>
<TD>
<!---Submit/reset buttons--->
<A href="javascript: document.addordersplacedform.submit()"><IMG src="submit.gif" onClick="return validateInfo();" border="0"></A>
<A href="javascript: document.addordersplacedform.reset()"><IMG src="clearform.gif" border="0"></A>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
Could this even be the problem??
Thanks
I am trying to create a cold fusion update page that will work with a postgresql database. I have 2 primary keys in the table: order_id and accountnumber. order_id is a sequence/autonumber and its default is to increment the last value of order_id. I think this is whats causing my problem. My insert form works using this default but everytime I submit cf just hangs and eventually kicks me off of the server. If this is my problem ( iam open to any other ideas) how could I fix this where my insert form won't be messed up. Here is what the default of order_id looks like: nextval('seq_ordersplaced') this is what increments order_id, if I take this out it will mess up my insert form but possibly fix my update. Here is my code for the update:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<CFQUERY name="UpdateRecord" datasource="supply">
SELECT *
FROM ordersplaced
<!---populate the form with the record that matches the search criteria from the main page--->
WHERE order_id=#URL.orderid#
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Supplies Orders Placed Form</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
//begin validation function
function validateInfo()
{
//declare variables to hold input values
var _accountname = document.updateordersplacedform.accountname.value;
var _tubes = document.updateordersplacedform.tubes.value;
var _needles = document.updateordersplacedform.needles.value;
var _butterfly = document.updateordersplacedform.butterfly.value;
var _sterilecontainer = document.updateordersplacedform.sterilecontainer.value;
var _tissuecontainer = document.updateordersplacedform.tissuecontainer.value;
var _sharps = document.updateordersplacedform.sharps.value;
var _gloves = document.updateordersplacedform.gloves.value;
var _misc = document.updateordersplacedform.misc.value;
//verify that certain input fields are filled in
if(_accountname.toString() ==""
{
alert("Please enter an Account Name."
updateordersplacedform.accountname.focus();
return false;
}
if(_tubes.toString() ==""
{
alert("Please enter a numeric value for Tubes EX.(0 or 10)."
updateordersplacedform.tubes.focus();
return false;
}
if(_needles.toString() ==""
{
alert("Please enter a numeric value for Needles EX.(0 or 10)."
updateordersplacedform.needles.focus();
return false;
}
if(_butterfly.toString() ==""
{
alert("Please enter a numeric value for Butterfly EX.(0 or 10)."
updateordersplacedform.butterfly.focus();
return false;
}
if (_sterilecontainer.toString() ==""
{
alert("Please enter a numeric value for Sterile Container EX.(0 or 10)."
updateordersplacedform.sterilecontainer.focus();
return false;
}
if (_tissuecontainer.toString() ==""
{
alert("Please enter a numeric value for Tissue Container EX.(0 or 10)."
updateordersplacedform.tissuecontainer.focus();
return false;
}
if (_sharps.toString() ==""
{
alert("Please enter a numeric value for Sharps EX.(0 or 10)."
updateordersplacedform.sharps.focus();
return false;
}
if (_gloves.toString() ==""
{
alert("Please enter a numeric value for Gloves EX.(0 or 10)."
updateordersplacedform.gloves.focus();
return false;
}
if(_misc.toString() ==""
{
alert("Please enter a numeric value for Misc EX.(0 or 10)."
updateordersplacedform.misc.focus();
return false;
}
}
</SCRIPT>
</HEAD>
<BODY bgcolor="cccccc">
<TABLE cellspacing="0" cellpadding="0">
<TR>
<TD><FONT face="ARIAL" size="6"><B>Orders Placed</B></FONT>
</TD>
<TD>
<!---Link back to main page--->
<A href="mainsuppliesdbpage.cfm"><IMG src="mainpage.gif" border="0"></A>
</TD>
</TR>
<TR>
<TD>
<CFOUTPUT>
<FONT size="2" face="Arial">Please use your browsers "reload" function to view the most recent accounts.
You have updated the information in the Supplies Database.</FONT>
</CFOUTPUT>
<CFOUTPUT query="UpdateRecord">
<FORM name="updateordersplacedform" action="updateordersplaceddata.cfm" method="Post"> <!---Order ID: - hidden--->
<INPUT type="hidden" name="order_id" value="#order_id#"><BR>
<INPUT type="text" name="accountnumber" value="#accountnumber#"><BR>
<FONT face="arial" size="3">Account Name:</FONT>
<INPUT type="Text" name="accountname" value="#accountname#" size="50" maxlength="50"><BR><FONT face="ARIAL" size="3">Tubes:</FONT>
<INPUT type="Text" name="tubes" value="#tubes#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Needles:</FONT>
<INPUT type="Text" name="needles" value="#needles#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Butterfly:</FONT>
<INPUT type="Text" name="butterfly" value="#butterfly#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Sterile Containers:</FONT>
<INPUT type="Text" name="sterilecontainer" value="#sterilecontainer#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Tissue Container:</FONT>
<INPUT type="Text" name="tissuecontainer" value="#tissuecontainer#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Sharps:</FONT>
<INPUT type="Text" name="sharps" value="#sharps#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Gloves:</FONT>
<INPUT type="Text" name="gloves" value="#gloves#" size="10" maxlength="50"><BR><FONT face="ARIAL" size="3">Misc:</FONT>
<INPUT type="Text" name="misc" value="#misc#" size="10" maxlength="50"><BR><BR>
dateentered:<INPUT type="text" name="dateentered" value="#dateentered#" size="8" maxlength="8">
orderdate:<INPUT type="text" name="orderdate" value="#orderdate#" size="8" maxlength="8">
</TD>
</TR>
<TR>
<TD>
<!---Submit/Clear buttons--->
<A href="javascript: document.updateordersplacedform.submit()"><IMG src="submit.gif" onClick="return validateInfo();" border="0"></A>
<A href="javascript: document.updateordersplacedform.reset()"><IMG src="clearchanges.gif" border="0"></A>
</TD>
</TR>
</TABLE>
</FORM>
</CFOUTPUT>
</BODY>
</HTML>
Here is my insert page code:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!---<CFQUERY name="getval" datasource="supply">
Select max(order_id) as max_id from ordersplaced;
</CFQUERY>--->
<HTML>
<HEAD>
<TITLE>Supplies Database Place Order Form</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
//begin is numeric function
function isNum(passedVal)
{
if(passedVal ==""
{
return false
}
for (i=0; i<passedVal.length; i++)
{
if (passedVal.charAt(i) < "0"
{
return false
}
if (passedVal.charAt(i) > "9"
{
return false
}
}
return true
}//end is numeric function
//begin is date function - This function checks to see if the
//date is in the correct format.
function isDate(date)
{
if (date.length != 10)
{
alert("Please enter an Order Date in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if (date.charAt(2) != "/"
{
alert("Please enter a foward slash '/' between month and day in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if (date.charAt(5) != "/"
{
alert("Please enter a forward slash'/' between day and year in the format (mm/dd/yyyy)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(0,2) < "01" || (date.substring(0,2) > "12")
{
alert("Please enter a valid month EX.(01 to 12)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(3,5) < "01" || (date.substring(3,5) > "31")
{
alert("Please enter a valid day EX.(01 to 31)."
addordersplacedform.orderdate.focus();
return false;
}
if ((date.substring(6,10) < "0000" || (date.substring(6,10) > "9999")
{
alert("Please enter a valid year EX.(2000)."
addordersplacedform.orderdate.focus();
return false;
}
}
//end is date function
//begin main validation function
function validateInfo()
{
//declare variables to hold input values
var _accountnumber = document.addordersplacedform.accountnumber.value;
var _accountname = document.addordersplacedform.accountname.value;
var _orderdate = document.addordersplacedform.orderdate.value;
var _tubes = document.addordersplacedform.tubes.value;
var _needles = document.addordersplacedform.needles.value;
var _butterfly = document.addordersplacedform.butterfly.value;
var _sterilecontainer = document.addordersplacedform.sterilecontainer.value;
var _tissuecontainer = document.addordersplacedform.tissuecontainer.value;
var _sharps = document.addordersplacedform.sharps.value;
var _gloves = document.addordersplacedform.gloves.value;
var _misc = document.addordersplacedform.misc.value;
//verify that certain input fields are filled in
if(isNum(_accountnumber) == false)
{
alert("Please enter a numeric Account Number."
addordersplacedform.accountnumber.focus();
return false;
}
if(_accountname.toString() ==""
{
alert("Please enter an Account Name."
addordersplacedform.accountname.focus();
return false;
}
if(_orderdate.toString() ==""
{
alert("Please enter an Order Date in the format (mm/dd/yy)."
addordersplacedform.orderdate.focus();
return false;
}
//calls function isDate to check date validity
if(isDate(_orderdate)== false)
{
addordersplacedform.orderdate.focus();
return false;
}
if(_tubes.toString() ==""
{
alert("Please enter a numeric value for Tubes."
addordersplacedform.tubes.focus();
return false;
}
if(_needles.toString() ==""
{
alert("Please enter a numeric value for Needles."
addordersplacedform.needles.focus();
return false;
}
if(_butterfly.toString() ==""
{
alert("Please enter a numeric value for Butterfly."
addordersplacedform.butterfly.focus();
return false;
}
if (_sterilecontainer.toString() ==""
{
alert("Please enter a numeric value for Sterile Container."
addordersplacedform.sterilecontainer.focus();
return false;
}
if (_tissuecontainer.toString() ==""
{
alert("Please enter a numeric value for Tissue Container."
addordersplacedform.tissuecontainer.focus();
return false;
}
if (_sharps.toString() ==""
{
alert("Please enter a numeric value for Sharps."
addordersplacedform.sharps.focus();
return false;
}
if (_gloves.toString() ==""
{
alert("Please enter a numeric value for Gloves."
addordersplacedform.gloves.focus();
return false;
}
if(_misc.toString() ==""
{
alert("Please enter a numeric value for Misc."
addordersplacedform.misc.focus();
return false;
}
}
//end validation function
</SCRIPT>
</HEAD>
<!---Get Date--->
<CFSET dateentered = NOW()>
<!---<CFSET max_id = getval.max_id + 1>--->
<BODY bgcolor="cccccc">
<TABLE height="100%" width="100%" cellspacing="3" cellpadding="5">
<TR>
<TD><FONT face="arial" size="6"><B>Orders Placed</B></FONT>
</TD>
<TD>
<!---Link back to main page--->
<A href="mainsuppliesdbpage.cfm"><IMG src="mainpage.gif" border="0"></A>
</TD>
</TR>
<TR>
<TD>
<FORM name="addordersplacedform" action="postordersplaceddata.cfm" method="Post">
<!---<cfoutput>--->
<!---<INPUT type="hidden" name="order_id" size="8" maxlength="8" value="#order_id#">---><BR><FONT face="arial" size="3">Account Number:</FONT>
<!---</cfoutput>--->
<INPUT type="text" name="accountnumber" size="8" maxlength="8"><BR><FONT face="arial" size="3">Account Name:</FONT>
<INPUT type="text" name="accountname" size="50" maxlength="50"><BR><FONT face="arial" size="3">Order Date:</FONT>
<INPUT type="Text" name="orderdate" size="10" maxlength="50"><BR><FONT face="arial" size="3">Tubes:</FONT>
<INPUT type="Text" name="tubes" size="10" maxlength="50"><BR><FONT face="arial" size="3">Needles:</FONT>
<INPUT type="Text" name="needles" size="10" maxlength="50"><BR><FONT face="arial" size="3">Butterfly:</FONT>
<INPUT type="Text" name="butterfly" size="10" maxlength="50"><BR><FONT face="arial" size="3">Sterile Containers:</FONT>
<iNPUT type="Text" name="sterilecontainer" size="10" maxlength="50"><BR><FONT face="arial" size="3">Tissue Container:</FONT>
<INPUT type="Text" name="tissuecontainer" size="10" maxlength="50"><BR><FONT face="arial" size="3">Sharps:</FONT>
<INPUT type="Text" name="sharps" size="10" maxlength="50"><BR><FONT face="arial" size="3">Gloves:</FONT>
<INPUT type="Text" name="gloves" size="10" maxlength="50"><BR><FONT face="arial" size="3">Misc:</FONT>
<INPUT type="Text" name="misc" size="10" maxlength="50"><BR><!---Date Entered: - hidden--->
<CFOUTPUT>
<INPUT type="hidden" name="dateentered" value="#dateentered#"><BR>
</CFOUTPUT>
</TD>
</TR>
<TR>
<TD>
<!---Submit/reset buttons--->
<A href="javascript: document.addordersplacedform.submit()"><IMG src="submit.gif" onClick="return validateInfo();" border="0"></A>
<A href="javascript: document.addordersplacedform.reset()"><IMG src="clearform.gif" border="0"></A>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
Could this even be the problem??
Thanks