Jason,
I think the problem is related to a Protected or conflicting word "length"
Confirmation ~
Works:
<input name="length2" type="text" id="length2" size="30" maxlength="5">
Fails with the error shown
<input name="length" type="text" id="length" size="30" maxlength="5">