Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Formbuilder - how to include other vars
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Dermot
04-03-08 12:18 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.