I like to apply trim() to all $_POST values via array_walk_recursive(), then check for unset/empty fields via a combination of isset() and using the "is identical" operator to check for empty strings.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks