Hi,

The CGI::FormBuilder mailing list is down. I am hoping someone on this
list might have some experience with formbuilder and could offer some
guidance.

I want to set some variables that I can examine within the Template.
It looks like with formbuilder all the variables have to set set via
the form. That's okay but I don't know how to examine any of the
variables expect by looping through them...

  </head>
 [% FOREACH field = form.fields %]
   [% IF field.name == 'somename' && field.value > 1 %]
        <body onload="[% field.value %]">
   [% END %]
 [% END %]

I seems excessive to have to loop through all the fields but I can't
find a syntax to access a field by name directly. form.fields looks
like an array and [% form.fields[0] %] gives a syntax error.

Does anyone know how to either A) set a variable that would be
accessible to Template or B) access a form field directly without
having to loop?

Sorry for being a little OT.
Dp.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to