Summary:
Input validation can be a tricky thing. Ideally we should validate the data on the client side to prevent unnecessary round trips to the server. That requires JavaScript. But not every browser out there processes JavaScript (hard to believe, isn't it). And even still, changing the display characteristics to show errors in the input is not always supported. Not to mention, a slightly unethical person could recreate your page, and bypass the validation all together. Ugh! This leaves us with server-side valida |