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")#">



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net