For this reason, input validation is an important part of securing your Web application and creating a more robust technological system.
If you use PHP (and you should), this task is significantly simplified by the PEAR Validate class, which provides ready-made methods for common user validation tasks.
To see this class in action, begin by downloading and installing it to your system.
You can install the package manually, extracting its contents to your PEAR base directory, or by using the PEAR installer.
Suppose we have the following snippet: SNIPPET 3 A legitimate request would look like this: The line just adds a link to the page that points to an HTML file (it would be dynamically generated) named after the sought keyword and displays the keyword as the text child node of the anchor.