How do I validate this ?
I use the following code to dynamically generate input fields based on the quantity :
<cfloop from="1" to="#quantity#" index="i">
<table border="0">
<tr>
<td width="33" align="right" class="TitleText"><b>#i#:</b> </td>
<td width="148" align="right" clsas="TitleText">
<cfinput type="text" name="serialNumber" size="40">
<input type="hidden" name="PartNumberID" value="#PartNumberID#"><br></td>
</tr>
</table>
</cfloop>
The problem I am having is that people purposely blowup the serialNumber field by exceeding the limit size 40. I can use maxlenght to prevent this, but I want to display an error message. How can I do this ?
