A few things you could do to simplify the code: Rather than examining every form field to determine if the form was submitted, a single check of say - the submit button - should suffice for most purposes. Avoid using strings like "ALL" or "Choose:" for the form field values. Those are fine for...