<!-- The stylesheet to apply -->
<?xml-stylesheet href="simple2.xsl" type="text/xsl"?>
<document cache-methods="get,post">
        
<title>Gnomon Request Collections Sample</title>
        
<body>
                
<heading>Gnomon Request Collections Sample</heading>
                
<sub-heading>Sample #2</sub-heading>
                
<paragraph>
                        This is an example of gnomon accessing the request collections.  For more information on
                        the functions, see the 
<a href="/gnomon/manual/manual.html">manual</a>.  Most functions
                        can be called without arguments to return the entire collection, or with keys
                        to return just a particular value.
                
</paragraph>
                
<paragraph>
                        The collections are:
                        
<itemizedlist>
                                
<listitem>Cookies (read-cookies and write-cookies)</listitem>
                                
<listitem>Query string (request('q'))</listitem>
                                
<listitem>Form (request('f'))</listitem>
                                
<listitem>Parameters (request('p'))</listitem>
                                
<listitem>Server (CGI) variables (server-variables)</listitem>
                        
</itemizedlist>
                
</paragraph>
                
<paragraph>
                        See the 
<xml-source-link new-window="1" href="/gnomon/samples/simple/simple2.xml">source page</xml-source-link> and the 
                        
<xml-source-link new-window="1" href="/gnomon/samples/simple/simple2.xsl">stylesheet</xml-source-link>
                        that have produced the output that you see.
                
</paragraph>
                
<paragraph>
                        
<sub-heading>Cookies</sub-heading>
                        
<show-cookies />
                
</paragraph>
                
<paragraph>
                        
<sub-heading>Query String</sub-heading>
                        
<paragraph>
                                
<link linkend="?foo=foo_value&amp;bar=bar_value_1&amp;bar=bar_value_2">
                                        Click here to add a simple query string to the request
                                
</link>
                        
</paragraph>
                        
<show-query-string />
                
</paragraph>
                
<paragraph>
                        
<sub-heading>Form</sub-heading>
                        
<show-form />
                
</paragraph>
                
<paragraph>
                        
<sub-heading>Parameters</sub-heading>
                        
<paragraph>
                                Parameters are an optional gnomon feature.  The parameter
                                template-id, which identifies the current template, is always
                                present in the parameters collection.  See the 
                                
<link linkend="../template/template.acds">templates sample</link> for more information
                                on templates.
                        
</paragraph>
                        
<show-parameters />
                
</paragraph>
                
<paragraph>
                        
<sub-heading>Server Variables</sub-heading>
                        
<show-server-variables />
                
</paragraph>
        
</body>
</document>