Re: [Phplib-users] tpl_form -- how to erase frozen values?
Brought to you by:
nhruby,
richardarcher
From: Tarique S. <ta...@sa...> - 2002-01-25 12:38:50
|
On Thu, 24 Jan 2002, Carl Youngblood wrote: > Okay, I've been moving right along converting my site to use tpl_form and > I'm slowly become less and less convinced that it was a good idea. The > problem that I'm dealing with right now is: Sad to hear about your problems, I usually dont use tpl_forms BUT OOH forms with templates and then write a custom validator after the OOH form has validated the syntax BUT > entered gets displayed again. Under certain conditions, I want to blank out > the element and display nothing, even after the form has been submitted, but > I can't figure out how to do it. load_defaults function in OOH forms supports an arguement as an array containing list of elements you want the default values to be loaded into just dont pass the fields which you dont want the defaults to load Hope this helps Tarique Sani -- ========================================================== PHP Applications for E-Biz : http://www.sanisoft.com The Ultimate Ghazal Lexicon: http://www.aaina-e-ghazal.com ========================================================== |