Re: use of HTML_quickForm freeze()

From: Date: Thu, 16 Jan 2003 15:54:31 +0000
Subject: Re: use of HTML_quickForm freeze()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3323@lists.php.net to get a copy of this message
> webmaster@wwwatt.co.uk> wrote : > > > Hi > > > > This might sound like a stupid question, but anyway... > > > > What does $form->freeze() do? I can't work it out. :-( > > > > If I take freeze() out of the supplied example files it doesn't seem to make > > any difference :-s > > > > Thanks for your help (and for humouring me) > > Hi Webmaster :-) > > Freeze will freeze your element(s) so that they won't be changeable by the > user, they will just show as standard html text. On the underneath of your > form, the frozen elements values will be converted to hidden elements. > > This is particularly useful if you have validation forms where you show what > the user entered for confirmation. Note that hidden fields can be changed if > the user edit your html. > > Use it like that: > $form->freeze('__ALL__'); // to freeze all elements Just $form->freeze() does the same thing if I'm not mistaking. Jeroen

« previous php.pear.general (#3323) next »