Re: Re: input type=file problem (Maybe 0T)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Dorward wrote:
Ryan A wrote:

The problem is, if she has tried to upload a pic at the same time and
screwed up on the date of birth I am unable
to send back the value of the FILE box so that too get populated... I
tried setting a VALUE="path/file" but that
does not work.


As has already been pointed out, you can't set the value of the file input.
What you can do though is to keep the image uploaded the first time round,
and send back a form adding a "Keep existing upload" (perhaps along with a
thumbnail of the image), thus saving the user from uploading the image over
and over until they fill in the rest of the form correctly.


alternatively break the form in 2. step 1 fill in all the required stuff, when that
passes you checks present step 2, namely a file upload box.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux