to put it simply, you can't...

but you could put an input type of text with a link or a button next to it
manually, and then on the onClick of either this button or link open a
secondary window running a PHP script that reads a particular directory
structure with full navigation support.  Then when the user clicks a
filename, place that into the input in the first window and close the
secondary window.

However, this would require JavaScript and a full recursive directory
browser script in PHP.  I have something similiar to this in a content
manager script I've written, but it doesn't check other directories.  It
picks an image from an /ImageLibrary/ directory, allowing the user to
preview an image, upload new images, delete images, rename images, but most
importantly pick a filename.  Then it populates a field in the content
manager screen for saving to a database.

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================

> -----Original Message-----
> From: Jerry Lake [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] input type=file
>
>
> this doesn't relate directly to PHP,
> but it will when I am done.
>
> How can I create a file input that
> reads from a directory on the server
> instead of the users machine
>
> Jerry Lake            - [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online           - http://www.pacifier.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to