Jump to content

Inpute box for a file


ReVeR

Recommended Posts

[!--quoteo(post=356814:date=Mar 20 2006, 09:29 PM:name=ReVeR)--][div class=\'quotetop\']QUOTE(ReVeR @ Mar 20 2006, 09:29 PM) [snapback]356814[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hello.
I need to make an inpute box that can select files on the server.How can that be done?
Thx
[/quote]

If you mean you want to list out the files in the server's directory so that the user can select one:

You can use PHP to get an array of the files on the server, and then use a loop to echo them back out...
( EXAMPLE: [a href=\"http://www.phpfreaks.com/phpref/90.php\" target=\"_blank\"]http://www.phpfreaks.com/phpref/90.php[/a] )

I don't know of any HTML that would be able to do this, you need a script to read the contents of a directory.. perhaps I'm wrong though - wouldn't be the first time.

If you mean that you want the user to be able to select a file on his/her PC:

<input type=file> is the HTML. Again, you really need PHP or another scripting language to be able to do anything but allow the user to browse his/her own computer..

( TUTORIAL: [a href=\"http://www.phpfreaks.com/tutorials/36/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/36/0.php[/a] )
( TUTORIAL: [a href=\"http://www.tipsntutorials.com/tutorials/PHP/67\" target=\"_blank\"]http://www.tipsntutorials.com/tutorials/PHP/67[/a] )


I know it's not a great reply or a good answer, but I hope it helps point you in the right direction a bit. Good luck!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.