Date: 11/08/99
- Next message: Daniel Scherly: "[PHPLIB] statistic library"
- Previous message: Shan Vosseller: "Re: [PHPLIB] Fatal error with MySQL"
- Maybe in reply to: Kristian Köhntopp: "Re: [PHPLIB] input type file: oohforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Or,
I should say that this problem would ALSO occur if
the user has javascript ON and one of file's uploaded
does not match specified criteria set by the script
(size, type and so on ).
In this situation, again the user would have
to pull ALL 10 files from his harddrive...not just the
one that failed.
Bob
#######################
Kristian,
Thanks for your responce.
Well the problem still exists.
Here is a scenareo. You have a form page
( generated with oohforms )and this page has
thirty form elements on it and 10 of those
elements are type="file".
Now the user visiting the page has javascript
Off, so we have to rely on the oohforms server
side validation.
This user goes through the complete form and
forgets a text field. He submits this to the server
and validate() returns the error and load_defaults()
repaints the page.
But in this situation ALL FILE FIELD VALUES ARE LOST.
So because the user made an error on a form element
other than the file element, he has to go through
and choose all files from his hard drive again.
This could get pretty tedious for the user. Do you
see a solution?
Thanks, Bob
------Original Message------
From: Kristian =?iso-8859-1?Q?K=F6hntopp?= <kk <email protected>>
To: Bob Strouper<bobw123 <email protected>>
Sent: November 8, 1999 10:40:38 AM GMT
Subject: Re: [PHPLIB] input type file: oohforms
Bob Strouper wrote:
> Currently ,when using oohforms with its serverside
> validation features,( when javascript is off),
> load_defaults() will NOT set the file form elements
> to the value of the php variables with the same name...
> since oohform is not giving the file elements a "value"
> attribute.
>
> I tryed to explain that the best I could :-)
Is it possible to supply a "value=" to an <input type="file">?
I'd think this is impossible for security reasons.
Kristian
-- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)__________________________________________________ FREE Email for ALL! Sign up at http://www.mail.com
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Daniel Scherly: "[PHPLIB] statistic library"
- Previous message: Shan Vosseller: "Re: [PHPLIB] Fatal error with MySQL"
- Maybe in reply to: Kristian Köhntopp: "Re: [PHPLIB] input type file: oohforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

