• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 7. Testing and Comparing Values > Workshop: Evaluating a User Response

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint