[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-general
Subject:    Re: [PEAR] Quickform required & freeze vs _file_ (upload)
From:       Brad Hubbard <brad () congosystems ! com>
Date:       2003-04-02 6:44:48
[Download RAW message or body]

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

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic