Server-side function | |
Implemented in | Netscape Server 3.0 |
Syntax
ssjs_getCGIVariable(varName)
Parameters
varName | A string containing the name of the environment variable to retrieve. |
Description
ssjs_getCGIVariable
lets you access the environment variables set in the server process, including the CGI variables listed in Table 13.2.
Table 13.2 CGI variables accessible through ssjs_getCGIVariable
If you supply an argument that isn't one of the CGI variables listed in n, the runtime engine looks for an environment variable by that name in the server environment. If found, the runtime engine returns the value; otherwise, it returns null. For example, the following code assigns the value of the standard CLASSPATH
environment variable to the JavaScript variable classpath
:
classpath = ssjs_getCGIVariable("CLASSPATH");
Last Updated: 10/31/97 16:38:00