You make the assumption that someone could very well have altered the contents of your html form in the most dangerous possible way. You think of every way that they could have altered it and check each and every parameter to ensure that it has valid values, regardless of what the form looked like.