Forum OpenACS Development: Re: can't read "msg_keys": variable is array

Collapse
Posted by Iuri Sampaio on
Thanks Dave.

The answer is here

set myform [ns_getform]
if {[string equal "" $myform]} {
ns_log Notice "No Form was submited"
} else {
ns_log Notice "FORM"
# ns_set print $myform

for {set i 0} {$i < [ns_set size $myform]} {incr i} {
set varname [ns_set key $myform $i]
set varvalue [ns_set value $myform $i]

ns_log Notice " $varname - $varvalue"
}
}

The form has been passed properly through the pages. The issue was just how to get the values.

I wasn't making anything complicated i was just using the existing page and code without touching too much on its structure