home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
srev13g.zip
/
TESTVALU.SHT
< prev
next >
Wrap
Text File
|
1999-03-02
|
3KB
|
75 lines
<!-- Demo of how one can use the SREF_VALUE function -- calls the
TESTVALU.CMD addon -->
<HTML>
<HEAD>
<TITLE>test sref_value</TITLE>
</HEAD>
<BODY>
<h3> Demo of the SREF_VALUE function </h3>
<FORM ACTION="/testvalu" METHOD="GET">
<table><tr><td colspan=2>
<CENTER><EM>Which "environment" should be examined</EM>?</CENTER></td>
<tr>
<td>
<INPUT TYPE=RADIO NAME="env" VALUE="OS2">OS/2 variables <em>(excluding SRE-http variables)</em><BR>
<INPUT TYPE=RADIO NAME="env" VALUE="INI">INItialization (SRE-http) variables<BR>
<INPUT TYPE=RADIO NAME="env" VALUE="REQ">REQuest specific variables<BR>
<INPUT TYPE=RADIO NAME="env" VALUE="USE">USEr defined, semi-permanent variables<BR>
</td>
<td>
<INPUT TYPE="CHECKBOX" NAME="readonly" VALUE="1" CHECKED> Read only?
</td>
<tr>
<td>Variable name:
<td><INPUT TYPE="text" NAME="Varname" SIZE=20 MAXLENGTH=50></td>
<tr>
<td>New value. Leave blank if you do not want to set.<BR> If you
do want to set, uncheck the read-only checkbox: </td><td>
<INPUT TYPE="text" NAME="newval" SIZE=20 MAXLENGTH=80></td>
<tr>
<td>Request number (optional, used with <tt>REQuest</tt> variables)
</td>
<td><INPUT TYPE="text" NAME="MISC" SIZE=6 MAXLENGTH=10></td>
</table>
<INPUT TYPE="submit" VALUE="submit">
</FORM>
<hr>
Hints on variable names:
<ul>
<li><b>*</b> means : <em> show all variables </em>
<li><b>**</b> is used when requesting <tt>OS/2</tt> variables; it causes <b>all</b>
variables to be displayed, even <tt>INItialization</tt> variables.
<li> Technical note: <tt>INItialization</tt> variables are saved in the OS/2 environment,
using a special prefix. This prefix depends on several factors (the vintage of the variables, the
port number you are running SRE-http under, etc); but always begins with <B>SRE</b>, and always
has a "_" before the <TT>INItialization</tt> variables name.
<li> To specify a host-specific <tt>INItialization</tt> parameter, either append a .HOST_NICKNAME
to the variable, or add the host nickname after the variable (preceded by at least one space).
<li><TT>REQuest</tt> specific variables are specific to a request. These expire after a short time
(by default, after 150 requests have arrived).
<p>
The <b>request number</b> is <b>only</b> used to look up <em>REQuest specific</em>
<br>information for other requests. If you do not specify a request number, and you ask for
a <tt>REQuest specific</tt> variable, the variables for the current request (actually, for the
request that results when you submit the form) will be used.
<p>
<li><TT>USEr</tt> variables are global to all requests, and to all SRE-http daemons. They do not
expire, but they must be explicitily created (say, by an SRE-http addon that calls SREF_VALUE).
</Ul>
</BODY>
</HTML>