Re: Quickform required & freeze vs _file_ (upload)

From: Date: Wed, 02 Apr 2003 06:44:48 +0000
Subject: Re: Quickform required & freeze vs _file_ (upload)
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4584@lists.php.net to get a copy of this message
On Wed, 2 Apr 2003 11:44 Australia/Melbourne, Fredrik de Vibe did align ASCII characters thusly: > To clarify: File uploading works seamlessly, only that I can't use the > 'required' rule in Quickform, as it isn't registered whether the field > is filled in or not. Ahhh [light goes on]; Try like this; $form->addElement( 'file', 'image_file', 'Image file:' ); $form->addRule( 'image_file', 'Image File is a required field', 'uploadedfile' ); Cheers, Brad

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