Re: [htmltmpl] how to determine if tmpl_var exists in a loop?
Brought to you by:
samtregar
From: Karen J. C. <si...@ph...> - 2004-04-17 16:25:04
|
On Sat, 17 Apr 2004, Puneet Kishor wrote: PK>What is/are a typical circumstance(s) where I would not already know PK>what vars exist in a template and would want to use query to find out? It's the split between template and programming thing. I've considered this myself... suppose you're wanting to build a form, with a great deal of customization involved layout/graphics wise (so that none of the form-building tools are really adequate). Suppose further that the script doesn't really care (much) what's in the form, because its only job is to save the settings in a file. I can't speak to the original poster's exact situation, but I've been mulling over something along these lines. Problem *I* have is that the script really needs to know more than just the parm name... it should know whether the end-user obeyed the form length, actually picked one of the SELECT options or hand-built a bogus submission, things like that. I haven't quite figured out whether I should write something that analyzes a read-in template to produce verification code (and if so, whether it should happen on the fly or not), use a meta-template to produce both the verification code and HTML fragments, or what. -- Karen J. Cravens si...@ph... |