I think you are missing a bracket on the second change. Should there be a close bracket at the end of this line?
------------------
Jimmy Crow
www.homewithgod.com
Code:
{$field}" size="$db_form_len{$field}" maxlength="$db_lengths{$field}"></td></tr>\n~;------------------
Jimmy Crow
www.homewithgod.com