![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
dialog box
How can I code a file dialog box in order to search files and folders in my computer just like u see in hotmail while choosing ur picture...
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Use the input field of type 'file'. You don't get a lot of stylistic or other control over this thangy, but it works and enforces the sandbox concept. Example:
<!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="20000" /> <!-- Name of input element determines name in $_FILES array --> Avatar file: <input id="avatar" name="avatar" type="file" value=""/>
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|