| | |
browse directory window
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2006
Posts: 14
Reputation:
Solved Threads: 0
I've got a problem. I'm writing an input form that takes a file name from the user. i want to put a button next to the text box that will open up windows explorer to ensure that there are no typos in the path. does anyone have an idea as to how i can accomplish this?
thanks in advance.
thanks in advance.
Last edited by donkey; Jul 19th, 2006 at 3:56 pm.
•
•
Join Date: Jul 2006
Posts: 16
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by donkey
I've got a problem. I'm writing an input form that takes a file name from the user. i want to put a button next to the text box that will open up windows explorer to ensure that there are no typos in the path. does anyone have an idea as to how i can accomplish this?
thanks in advance.
[html]
<input name="userfile" type="file"> <input value="Submit" type="submit" value="DoAnything"/>
[/html]
I believe that's what you need
•
•
•
•
Originally Posted by donkey
that is perfect, just one more question is there a way to tell it where to display. right now it starts at the level that the form is saved in. is there a way to start it at the root?
If so, I dont believe this is possible but would like to know if it is. Internet explorer has some file access functions that is availble to javascript (uses ActiveX so requires permission from user) that allows you to build custom file upload boxes i believe. I havent tested this but I've seen it implemented.
For a regular file upload element however, html or javascript cannot access the explorer folders as a security issue. Otherwise you will be able to look into filesystems on remote computers.
The value of the upload form element is read only so you wont be able to set it with JavaScript either.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Jul 2006
Posts: 14
Reputation:
Solved Threads: 0
I've done some more research and everything that i've found says that it isn't possible to give explorer a certain folder to open to. i have found, however, an attribute that allows you to filter certain file types.. "accept="text/html,text/pdf" but when i put that in the input tag it doesn't change anything, i can still see my php files in explorer. Any ideas on how to make this work so that the user cannot see the php files?
Last edited by donkey; Jul 20th, 2006 at 12:10 pm.
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
Some browse buttons take suggestions... If you prefill the value in the body then click browse it starts from that point.
It's not consistant, and because of remote code execution possibilities most likely /not/ available in your browser.
It's not consistant, and because of remote code execution possibilities most likely /not/ available in your browser.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
•
•
Join Date: Jul 2006
Posts: 14
Reputation:
Solved Threads: 0
ok.. the browse part is working wonderfully, thank you very much. now one more question. I have a modify option on this form where the program reads the data base and displays a certain record. is there a way to fill that text box for the file name with the directory that is stored in the db? i've tried using value= and that does nothing. Is that because of that Security issue? Sorry to be a pain in the ass about this. thanks again!
Last edited by donkey; Jul 25th, 2006 at 4:28 pm.
![]() |
Similar Threads
- Yahoo! directory listing (Search Engine Optimization)
- Unable to install Active Directory; Access is denied (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: PHP/Mysql
- Next Thread: Query optimization
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube






