Workshop: Evaluating a User Response

As a practical example of the switch statement, you will now create a Web page that asks the user a question, and then evaluates the user's response to determine what to do next. Specifically, you'll ask the user for a keyword that represents a Web page.

If the keyword matches one of those in your script, the user will be sent to the appropriate page. If the response doesn't match one of the predetermined keywords, the user will be sent to a default page.