Conf/Examples/TclExample

From AOLserver Wiki
Revision as of 09:37, 6 January 2012 by Visitatvishal (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"
 }