A couple of problems exist with the code in Listing 9.1, the most important of which is that weekends include both Sundays and Saturdays. Therefore, the code to check whether it is the weekend needs to check for both days.
Here is a revised version of the code (see Listing 9.2); save this file as if2.cfm, and then execute it.
So as not to have to retype all the code as you make changes, use Dreamweaver’s File > Save As menu option to save the file with the new name, and then edit the newly saved file.
<!--- Name: if2.cfm Author: Ben Forta (email@example.com) Description: Demonstrate use of multiple conditions Created: 07/01/2007 ---> <html> <head> <title>If 2</title> </head> <body> <!--- ...