Re: QF: setDefaults() weird behaviour

From: Date: Fri, 19 Nov 2004 14:56:10 +0000
Subject: Re: QF: setDefaults() weird behaviour
References: 1 2 3 4 5 6 7  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15679@lists.php.net to get a copy of this message
Hi, Toni wrote:
I have developed an application to maintain a database of educational materials. I have a php file to update the registers in the database, which is a QFC. When I visit the page the form is displayed with the fields filled with data in the db. That's ok. I change the "language" field (select) to a different value [spanish->english] and submit the form. Ok. The process function save the values in the database and show me a link to another page. Ok. I visit again the update form and the selected value in the language field is the old one [spanish]. Not OK! Why get I this value?
No idea, I briefly looked at your code and there are no obvious QFC-related problems. Did you check whether the new value is *really* saved to the database?

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