Re: [Quickform] Change values of a hidden field

From: Date: Wed, 27 Aug 2003 17:19:14 +0000
Subject: Re: [Quickform] Change values of a hidden field
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7434@lists.php.net to get a copy of this message
> I am using Quickform to realize a form on a page. > > I like to use a hidden field to pass a value of how the data beeing passed > should be treated in the skript afterwards. It seems that there is no way > to change the value of this field once an intial value has been set. > > I now tried for one day and I am on my wits end. Could anybody please give > me a hint what to do? Hi, I just have been given the hint to use setConstants instead of setDefaults. And it works. I do not understand why, but it works. With setConstants it is possible to change values once set and with setDefaults it seems not to be possible? Does anyone have an explanation of that? The name 'setConstants' leads to the assumption that these values are not to be changed IMHO. Thomas

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