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

Chapter 8. URL Variables > What Is the Scope of a URL Variable?

What Is the Scope of a URL Variable?

URL variables are not available for use on the page in which they are first defined. Rather, they are available on the page to which the link points.

Because of this fact, using URL variables is the simplest way of maintaining state on a Web site. State refers to the capability of a Web server to remember things from one page to the next. For instance, local variables do not help the programmer maintain state because they are available only locally on the page in which they are created; they are not available on any other page in the Web site. URL variables allow you to pass information from one page to another when the user clicks a link.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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