One reason for processing parameters that "aren't there" is to check that someone isn't modifying a URI in an attempt to break the code?
This seems like an appropriate way to do that and bottle out early to an error page, before going on to validate correctly passed parameters. That way you get a single log entry for each mal-formed query string, noting all the information you need rather than (potentially) several dozen essentially similar warnings, one for each missing parameter.
In reply to Re: Re: Re: Re: Re: Re: "Correct" program style questions
by BrowserUk
in thread "Correct" program style questions
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |