Difference between revisions of "Conf/Examples/AdpParamExample"

From AOLserver Wiki
Jump to navigation Jump to search
(Created page with ' part of CGI Config Examples <html> <head><title>Testing of ADP</title></head> <body> <% set r [ns_conn form $conn] set param_value [ns_set get $r foo] …')
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Conf/Examples| part of CGI Config Examples]]
+
[[Conf/Examples/AdpConfig| part of ADP Config Examples]]
  
 
  <html>
 
  <html>
Line 5: Line 5:
 
  <body>
 
  <body>
 
  <%  
 
  <%  
  set r [ns_conn form $conn]
+
  set ns_set [ns_conn form]
  set param_value [ns_set get $r foo]
+
  set param_value [ns_set get $ns_set foo]
 
  ns_puts $param_value
 
  ns_puts $param_value
 
  %>
 
  %>
 
  </body>
 
  </body>
 
  </html>
 
  </html>
 +
 
 +
 
 +
 
 +
----
 +
To use with the example config, save the file to:
 +
  /var/www/vhost1/test.adp

Latest revision as of 09:13, 6 January 2012

part of ADP Config Examples

<html>
<head><title>Testing of ADP</title></head>
<body>
<% 
set ns_set [ns_conn form]
set param_value [ns_set get $ns_set foo]
ns_puts $param_value
%>
</body>
</html>
 
 
 

To use with the example config, save the file to:

 /var/www/vhost1/test.adp