I would like to sign and ad_form hidden variable to reduce the probability of unauthorized twiddling. Can anyone show me the proper syntax for doing this? Here's what I'm using and the error I'm seeing:
code
ad_form -name cmd -cancel_url $return_url -form {
cmd_id:key
{return_url:text(hidden) {value $return_url}}
{id_grp:integer(hidden) {sign} {value $id_grp}}
...
resulting error
can't use empty string as operand of "&&"
while executing
"if { [string equal $opts(widget) hidden]
&& [info exists opts(sign)]
&& $opts(sign)
} {
if {[info exists opts(value)] } {
..."
(procedure "template::element::create" line 71)
invoked from within
"template::element::create cmd id_grp -datatype integer -widget hidden -sign {} -value 0"
("eval" body line 1)
invoked from within
"eval template::element::$command $form_id $element_id $args"
...
Thanks,
Randy
Request notifications