Re: quickform : if not validates, forgets file

From: Date: Wed, 24 May 2006 15:08:10 +0000
Subject: Re: quickform : if not validates, forgets file
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24139@lists.php.net to get a copy of this message
On 5/24/06, gema <gema@autec.es> wrote:
hello, I´m using HTML_QuickForm and when any element type does not validate, and goes back showing the error message, if the user had uploaded a file, the form does not remember the choosen one as it remembers the other fields that were going on the post. Can anybody tell me why and if there is some walkaround?
I don't know if it's possible to "remember" a file field.... You may want to just move the file to a temporary location and replace the file element with a static element showing something about the file uploaded in this case. I would also suggest using client-side validation as much as possible. To make it look prettier, see: http://pear.reversefold.com/qf_DHTMLRules_and_SoftRequired.php -- Justin Patrin

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