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

Summary

Using URL variables is the easiest method for maintaining state in a Web environment. However, URL variables' scope is limited because they can pass variables only from one page to a specific target page. Nevertheless, they give you some level of interactivity with the Web visitor by allowing you to present the visitor with a list of dynamically generated hypertext links that are coded to pass information on to the target page. The variables being passed can then direct the target page to display information about the item selected by the visitor.

Sample Questions

1:Which character is used to separate URL variables?
  1. ?

  2. =

  3. &

  4. %

2:Which function should be used to ensure that URL variables contains only safe text?
  1. Trim()

  2. URLEncodedFormat()

  3. URLDecodedFormat()

  4. Val()

3:Which of the following is a valid method for creating URL variables?
  1. <a href="index.cfm?#URLEncodedFormat("Emily Kim")#">

  2. <cfset URLVar.FName="Emily">

  3. <cfparam name="URL.FName" default="Emily">

  4. <a name="index.cfm?#URLEncodedFormat("Emily Kim")#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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