Php validating text input
Note: Listing A and B are available in manageable text form included with the download file.
The Validate class comes with a number of built-in input validation methods, which are described in Table A.
To see this class in action, begin by downloading and installing it to your system.
You can provide custom validation for your forms in two ways: server-side validation and client-side validation.
Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.
(For more information on how to create form validation using the Front Page form feature, see About creating forms in Front Page 2003.) However, if the form validation provided in Front Page does not suit your needs or the site on which you are working is hosted on a server that does not have Front Page Server Extensions from Microsoft installed, you may need to create custom form validation.
In this day and age, when the internet is vast and extends sooo far,there are annoying folks who want to be malicious.
And that pretty much sums up why you should secure everything.