Difference between revisions of "Conf/Examples/AdpParamExample"

From AOLserver Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
  <body>
 
  <body>
 
  <%  
 
  <%  
  set r [ns_conn form $conn]
+
  set set_conn [ns_conn form]
  set param_value [ns_set get $r foo]
+
  set param_value [ns_set get $set_conn foo]
 
  ns_puts $param_value
 
  ns_puts $param_value
 
  %>
 
  %>

Revision as of 09:13, 6 January 2012

part of ADP Config Examples

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

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

 /var/www/vhost1/test.adp