Alexey Pechnikov wrote:
2011/5/11 Torben Brosten <[email protected]>:
Here's a proc that uses ns_getform, and returns the form values to a
supplied array name:
qf_get_inputs_as_array
See:
http://fisheye.openacs.org/browse/OpenACS/openacs-4/packages/spreadsheet/tcl/form-procs.tcl?r=1.27
It uses ad_quotehtml from OpenACS and includes some basic protections.
ACS is very complex solution. Custom AOL-based ORM
(http://en.wikipedia.org/wiki/Object-relational_mapping)
for AJAX applications may be extremly smaller than ACS.
qf_get_inputs_as_array is available to use ns_getform with some common
security constraints.
To use qf_get_inputs_as_array outside of the ACS dependency, remove the
first case of ad_quotehtml, it's redundant.
For the second case of ad_quotehtml, substitute a proc defined as:
return [string map {& & \" " < < > >} $arg]
There are no other dependencies on ACS.
cheers,
Torben
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.