Re: Quickform required & freeze vs _file_ (upload)
| From: | Fredrik de Vibe | Date: | Tue, 01 Apr 2003 11:40:04 +0000 |
| Subject: | Re: Quickform required & freeze vs _file_ (upload) | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4568@lists.php.net to get a copy of this message | ||
> On Monday, March 31, 2003, at 10:58 PM, Fredrik de Vibe wrote:
> > It seems that neither freeze nor the required rule work on image
> > input tags. Am I doing something wrong or is there a reason it is
> > so?
> >
> > I am also curious about the date type. There is no obvious (at
> > least to me) way to filter this. I admit I haven't checked the
> > code here, and it might be that this is done automatically, but if
> > somebody could clarify, I'd be grateful.
ckline@rightcode.net (Charles Kline) writes:
> I have used the required rule on file fields many times now. i have
> not tried freeze. as for the question about the date type, what do
> you meant about filtering?
I sat up too late, I guess. I meant file (upload) input fields, not
image. It appears you understood this, nonetheless. :-)
Ok, what's weird is that the field _is_ required, but when I fill
something in, the value isn't registered and I can't get the form
submitted.
By date filtering, I mean the same as text field filtering etc., like
$form->applyFilter('MyDate', 'intval');
Making sure that all the values are ints. Only this doesn't work as
the resulting variable in Quickform is an array, and there is afaics
no other applicable filter. I also tried
--
--Fredrik
When I was a boy I was told that anybody could become President. Now
I'm beginning to believe it.
-- Clarence Darrow