September 2007
Intermediate to advanced
600 pages
20h 21m
English
The code in Listing 9.2 is logically correct: If it is Sunday or Saturday, then it is indeed the weekend, and the weekend message is displayed. But what if it is not Sunday or Saturday? Right now, nothing is displayed at all; so let’s fix that.
Listing 9.3 contains the revised code, capable of displaying a non-weekend message if necessary (see Figure 9.2). Save this code as if3.cfm, and then execute it.
<!--- Name: if3.cfm Author: Ben Forta (ben@forta.com) Description: Demonstrate use of <cfif> and ... |
Read now
Unlock full access