In ASP programs, two scripting languages are commonly used, namely VBScript, and JavaScript languages. This chapter will introduce the basic methods of use of these two scripting languages. VBScript language Microsoft Visual Basic Scripting Edition is a member of the program development language Visual Basic family, which applies flexible Script to a wide range, including Microsoft Internet Explorer WEB Server Script, Microsoft Internet Information Server, Microsoft Internet Information Server. VBScript is the default scripting language of Active Server Pages. VBScript can be used as a client programming language or as a server programming language. The room programming language is the language that can be interpreted by the browser. Java and JScript / JavaScript can also be used as a client programming language. When a program prepared in any of these languages is downloaded into a compatible browser, the browser will automatically execute the program. Variables, operators and expression variables are memory space with a specific name, and after declaring variables, the variable can be referenced in the script. There is only one basic data type in VBScript, namely Variant, and VBScript is not case sensitive. Declare a variable must follow the standard naming rules of VBScript: 1. The first character must be a letter. 2. Cannot include embedded periods. 3. Can not exceed 255 characters. 4. You must be unique in the scope of the declared. Declare variables are divided into display declarations and implicit declarations. One way to explicitly declare is to declare the variable using the DIM statement, the public statement, and the private statement. For example: DIM VarNamePublic statements are used to declare public variables and allocate storage space, and the declared variables can be used for all processes of all projects. The syntax is as follows: Public varNamePrivate statement is used to declare a private variable and allocate storage space, and can only be used in a script that declares the variable. The syntax is as follows: Public varName declares multiple variables, use comma separation variables. For example: DIM Name, AGE, SEX, TITLE implicit declaration declares variables by using variable names in direct Script. For example: VarName = value If it is declared before using the variable, the program is easy to maintain, and this is to handle this situation using a mandatory declaration, which is the top end of the script contains statement Option Expllict. The following example demonstrates how to force variables must first declare: <% ption expiclt%>