Update is not storing data! PLEASE HELP!
This is driving me nuts! I have an update form that does not throw any errors upon submission but does not store data either. I have verified through my cfdump that the data fields are being passed and in the correct data types. I am pretty sure that the problem lies with the primary key. This does not show in my cfdump but I am not sure it should as it is a hidden field. It does show in my source code (which I don't understand since that kind of defeats the purpose of being hidden) so I think it is being passed but I still don not get any update. Please help!
Here is my form:
<form action="update_product.cfm" method="post">
<cfoutput query="getProducts">
<input type="hidden" name"ProductID" value="#ProductID#" />
<table>
<tr>
<td width="178" style="width: 178px"> </td>
<td width="375" style="width: 375px"> </td>
<td width="175" style="width: 105px"> </td>
</tr>
<tr>
<td style="width: 178px">Manufacturer logo:</td>
<td colspan="2" style="width: 375px"><input name="ManufacturerImage" type="text" style="width: 230px" value="#ManufacturerImage#"></td>
</tr>
<tr>
<td style="width: 178px">Manufacturer:</td>
<td style="width: 375px"><input name="Manufacturer" type="text" style="width: 230px" value="#Manufacturer#"></td>
<td style="width: 105px" valign="top"></td>
</tr>
<tr>
<td style="width: 178px">Product title:</td>
<td style="width: 375px"><input name="ProductTitle" type="text" style="width: 230px" value="#ProductTitle#"></td>
<td style="width: 105px" valign="top"></td>
</tr>
<tr>
<td style="width: 178px">Product image:</td>
<td colspan="2" style="width: 375px"><input name="ProductImage" type="text" style="width: 230px" value="#ProductImage#"></td>
</tr>
<tr>
<td style="width: 178px" valign="top">Product description:</td>
<td colspan="2" rowspan="3" valign="top"><textarea name="ProductDescription" cols="50" rows="10" id="ProductDescription">#ProductDescription#</textarea></td>
</tr>
<tr>
<td style="width: 178px"> </td>
</tr>
<tr>
<td style="width: 178px"> </td>
</tr>
<tr>
<td style="width: 178px" class="auto-style1">Catalog group:</td>
<td style="width: 375px" class="auto-style1"><select name="CatalogGroup" required="Yes" message="Please select a Catalog Group">
<option selected="selected" value="#CatalogGroup#">#Group#</option></cfoutput>
<cfoutput query="getGroups">
<option value="#ID#">#Group#</option>
</cfoutput>
</select></td>
<td style="width: 105px" class="auto-style1"> </td>
</tr>
<tr>
<td style="width: 178px" class="auto-style1">Species:</td>
<td style="width: 375px" class="auto-style1"><cfoutput query="getProducts"><select name="Species" >
<option selected="#Species#">#Species#</option>
<option value="Bird & Fowl">Bird & Fowl</option>
<option value="Caged Bird">Caged Bird</option>
<option value="Canine">Canine</option>
<option value="Cattle">Cattle</option>
<option value="Deer">Deer</option>
<option value="Equine">Equine</option>
<option value="Feline">Feline</option>
<option value="Fish">Fish</option>
<option value="Goat">Goat</option>
<option value="Llama & Alpaca">Llama & Alpaca</option>
<option value="Rabbit">Rabbit</option>
<option value="Sheep">Sheep</option>
<option value="Swine">Swine</option>
<option value="Wild Bird">Wild Bird</option>
<option value="Multi/All">Multi/All</option>
</select></td>
<td style="width: 105px" class="auto-style1"> </td>
</tr>
<tr>
<td bgcolor="##FFFFCC" style="width: 178px">Product type</td>
<td bgcolor="##FFFFCC" style="width: 375px"><select name="ProductType" required="Yes" message="Please select a Product Type">
<option selected="selected" value="#ProductType#">#ProductTypes_ProductType#</option></cfoutput>
<cfoutput query="getProductType">
<option value="#ID#">#ProductType#</option>
</cfoutput>
</select></td>
<td bgcolor="#FFFFCC" style="width: 105px"> </td>
</tr>
<tr>
<td style="width: 178px"> </td>
<td style="width: 375px"> </td>
<td style="width: 105px"> </td>
</tr>
<tr>
<td style="width: 178px"> </td>
<td><input type="submit" value="Update"></td>
<td style="width: 105px"> </td>
</tr>
<tr>
<td style="width: 178px"> </td>
<td style="width: 375px"> </td>
<td style="width: 105px"> </td>
</tr>
</table>
</form>
Here is my action page:
<cfdump var="#FORM#">
<!--- Update Product data --->
<cfif IsDefined("FORM.ProductID")>
<cfquery datasource="farmky" name="updProducts">
UPDATE Products
WHERE ProductID = #FORM.ProductID#
</cfquery>
</cfif>
<cflocation url="products_master.cfm">
