Re: QF: setDefaults() weird behaviour
| From: | Toni | Date: | Fri, 19 Nov 2004 12:38:52 +0000 |
| Subject: | Re: QF: setDefaults() weird behaviour | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15676@lists.php.net to get a copy of this message | ||
Hi,
sorry for the short description, but my english is poor.
I try to explain my problem better:
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?
And I get the same results with setDefaults() or setSelected().
Attached is the form file.
Thanks. Toni.
El vie, 19-11-2004 a las 14:43 +0300, Alexey Borzov escribió:
> Hi,
>
> Toni wrote:
> > But I have the same results as with setDefaults(): the first time I load
> > the update-page it's ok, but if I submit the form updated and then (...
> > I visit other pages...) I return to the update-page the values are the
> > old ones.
>
> The description of your problem is extremely vague.
>
Attachment: [application/x-php] modifMaterial.php
Attachment: [application/x-php] modifMaterial.php