Pre-filled input fields

Arkady Grudzinsky <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
What is the best way to generate input fields pre-filled with dynamic contents
in HTML forms with HTML::Template and still be able to see the input fields
when the template file is viewed in a browser without the script?

    <input type=text name=my_text value="<TMPL_VAR text_value>" />

works for text fields, but its not so trivial with the pop-up menus.

Of course, I can generate input fields with Perl using either CGI or
CGI::FormBuilder.
But then, your template will look like this:

           <p>Your full name: <tmpl_var field-name>
           <p>Your email address: <tmpl_var field-email>
           <p>Choose a password: <tmpl_var field-password>
           <p>Please confirm it: <tmpl_var field-confirm_password>
           <p>Your home zipcode: <tmpl_var field-zipcode>

When the template file is viewed in a browser, the input fields are
not visible.  If I write the code and ask an HTML web designer to work
on templates, it would be hard for the web designer to see what the
form looks like with the "invisible" fields.

Did anyone have this problem?

Thanks.

Arkady.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.