Using Manual Server-Side Validation
The code shown in Listing 13.1 is a simple login prompt used to gain access to an intranet site. The file (which you should save as login1.cfm in a new directory named 13) prompts for a user ID and password. HTML’s only validation rule, maxlength, is used in both form fields to restrict the number of characters that can be entered. The form itself is shown in Figure 13.1.
Figure 13.1. HTML forms support basic field types, such as text and password boxes.
Listing 13.1. login1.cfm—Simple Login Screen
<!--- Name: login1.cfm Author: Ben Forta (email@example.com) Description: Basic server-side ...