I once encountered a 2K+ line script handling submissions from something like a contact form.<p>If a client submitted a value for which the key didn't exist in the database table, it wasn't ignored - the application would alter the table to add that row to the database so it could insert it.