[Phplib-users] tpl_form -- how to erase frozen values?
Brought to you by:
nhruby,
richardarcher
From: Carl Y. <ca...@yo...> - 2002-01-24 23:04:10
|
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: I have a form that submits to itself. Sometimes I want to erase the value that the user entered before the form gets redisplayed. Right now, whatever the user enters is being redisplayed in the form elements. For example, if one of the form elements were for the user to enter his/her email, and the user entered an email, after the form is submitted, the email that the user 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. Thanks in advance for any help that someone can provide. Carl Youngblood |