Difference between revisions of "Conf/Examples/TclExample"

From AOLserver Wiki
Jump to navigation Jump to search
(Created page with 'ns_register_proc GET /hello.html hello ns_register_proc POST /hello.html hello proc hello {} { set set_id [ns_conn form] set param_value [ns_set get $set_id foo] n…')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
ns_register_proc GET /hello.html hello
+
 
ns_register_proc POST /hello.html hello
+
  ns_register_proc GET /hello.html hello
 +
  ns_register_proc POST /hello.html hello
  
 
   proc hello {} {
 
   proc hello {} {

Latest revision as of 09:32, 11 January 2012

 ns_register_proc GET /hello.html hello
 ns_register_proc POST /hello.html hello
 proc hello {} {
   set set_id [ns_conn form]
   set param_value [ns_set get $set_id foo]
   ns_return 200 text/html "Hello World. Value $param_value"
 }