George, If I understand your problem correctly, you have an HTML form generated by H::T and you want to use data from a database to populate the field values.
You might try looking at the associate option (look under the new() method in the doc). While I've not used it in H::T, it sounds similar in function to HTML::FillInForm where data from another object is accessed via a param method. You'd need to write an object to get the data from the database and ensure that you have a param method that "behaves like that of CGI.pm". If you'd like an example param method I can send one vie email. As for the managers... if they can't comprehend a form with TMP_VAR's in the value - don't show it to 'em. Show them another hard-coded form. Smoke and mirrors - and a little doublespeak go a long way. :-) Steve P.S. Carmem - if you're reading this - iI mean the OTHER managers. Steve Ragan Sr. Internet Developer Internet Services Division Bernard C. Harris Publishing Co., Inc. 2500 Westchester Ave. Purchase, NY 10577 (914) 641-3948 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: George Jempty [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 01, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: [htmltmpl] Commenting TMPL_VAR's for ease of parsing?! This might be another valid reason embedding <TMPL> tags in comments?! Rather than just being fanatical about valid HTML ;) I'm sincerely interesting in hearing if others have experience with this, have alternate solutions, ideas why my solution might not work, etc. PS....I'm "pre" parsing the template, in conjunction with a naming convention for the both the HTML form tags names and the Perl/TMPL variable names, so I can "pre" fetch data with DBI to set these variables. For instance: <input name="DB_patient_firstMiddle" ....> where "patient" is the table, and "firstMiddle" is the field. I could do _all_ this with CGI.pm, but its nice to visually design my forms and pages and then use HTML::Template. This way I can show a pretty static page to managers who insist on "seeing something". Furthermore, by using comments, I won't have to hear them say "Why do your text fields have TMPL_VAR .... in them?" ;) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
