Re: Pre-filled input fields

Jason Purdy <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Journalistic, Inc.
Message-ID <[email protected]>
What I usually do is add another step and instead of stopping at the 
template, I pass the template's output into HTML::FillInForm, which is 
great for filling out ANY input fields (pop-up menus, etc).

- Jason

Arkady Grudzinsky wrote:
> 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
> _______________________________________________
> Html-template-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/html-template-users


-------------------------------------------------------
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.