home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13g.zip / TESTVALU.SHT < prev    next >
Text File  |  1999-03-02  |  3KB  |  75 lines

  1. <!-- Demo of how one can use the SREF_VALUE function -- calls the
  2.      TESTVALU.CMD addon -->
  3. <HTML>
  4. <HEAD>
  5. <TITLE>test sref_value</TITLE>
  6. </HEAD>
  7.  
  8. <BODY> 
  9. <h3> Demo of the SREF_VALUE function </h3>
  10. <FORM ACTION="/testvalu" METHOD="GET">
  11.  
  12. <table><tr><td colspan=2>
  13. <CENTER><EM>Which "environment" should be examined</EM>?</CENTER></td>
  14. <tr>
  15. <td>
  16. <INPUT TYPE=RADIO NAME="env" VALUE="OS2">OS/2 variables <em>(excluding SRE-http variables)</em><BR>
  17. <INPUT TYPE=RADIO NAME="env" VALUE="INI">INItialization (SRE-http) variables<BR>
  18. <INPUT TYPE=RADIO NAME="env" VALUE="REQ">REQuest specific variables<BR>
  19. <INPUT TYPE=RADIO NAME="env" VALUE="USE">USEr defined, semi-permanent variables<BR>
  20.  
  21. </td>
  22.  
  23. <td>
  24. <INPUT TYPE="CHECKBOX" NAME="readonly" VALUE="1"  CHECKED> Read only?
  25. </td>
  26.  
  27. <tr>
  28. <td>Variable name: 
  29. <td><INPUT TYPE="text" NAME="Varname"  SIZE=20 MAXLENGTH=50></td>
  30.  
  31. <tr>
  32. <td>New value. Leave blank if you do not want to set.<BR> If you
  33.  
  34. do want to set, uncheck the read-only checkbox: </td><td>
  35. <INPUT TYPE="text" NAME="newval"  SIZE=20 MAXLENGTH=80></td>
  36.  
  37.  
  38. <tr>
  39. <td>Request number (optional, used with <tt>REQuest</tt> variables)
  40. </td>
  41. <td><INPUT TYPE="text" NAME="MISC"  SIZE=6 MAXLENGTH=10></td>
  42.  
  43.  
  44. </table>
  45. <INPUT TYPE="submit" VALUE="submit">
  46.  
  47.  
  48. </FORM>
  49. <hr>
  50. Hints on variable names:
  51. <ul>
  52. <li><b>*</b> means : <em> show all variables </em>
  53. <li><b>**</b> is used when requesting <tt>OS/2</tt> variables; it causes <b>all</b>
  54. variables to be displayed, even <tt>INItialization</tt> variables.
  55. <li> Technical note: <tt>INItialization</tt> variables are saved in the OS/2 environment, 
  56. using a special prefix. This prefix depends on several factors (the vintage of the variables, the
  57. port number you are running SRE-http under, etc); but always begins with <B>SRE</b>, and always
  58. has a "_" before the <TT>INItialization</tt> variables name.
  59. <li> To specify a host-specific <tt>INItialization</tt> parameter, either append a .HOST_NICKNAME
  60. to the variable, or add the host nickname after the variable (preceded by at least one space).
  61. <li><TT>REQuest</tt> specific variables are specific to a request. These expire after a short time
  62. (by default, after 150 requests have arrived).
  63. <p>
  64. The <b>request number</b> is <b>only</b> used to look up <em>REQuest specific</em>
  65. <br>information for other requests. If you do not specify a request number, and you ask for
  66. a <tt>REQuest specific</tt> variable, the variables for the current request (actually, for the
  67. request that results when you submit the form) will be used.
  68. <p>
  69. <li><TT>USEr</tt> variables are global to all requests, and to all SRE-http daemons. They do not
  70. expire, but they must be explicitily created (say, by an SRE-http addon that calls SREF_VALUE).  
  71.  
  72. </Ul>
  73. </BODY>
  74. </HTML>
  75.