What Is the Scope of a FORM Variable?As stated earlier in this chapter, FORM variables are very similar to URL variables. That means they can be used as a short-lived method of maintaining state on a Web site. The scope of FORM variables is the action page, and, also like URL variables, they expire after the page is processed. TIP You can pass URL variables at the same time you pass FORM variables. Just add them to the end of the action attribute of your form tag.
Youll review SESSION and COOKIE variables in Chapter 11, "Session State Management." |