| | |
Selecting file path from server in form
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Solved Threads: 0
Hi,
I'm trying to create a web ui that will run some scripts on my server (Ubuntu gusty). I want the user to be able to select some files on the server via some sort of file select form. The selected file path would then be passed to a text field in another form. I envisage that the main form will have several fields including some of these file path fields. Next to these fields will be a 'select' button, which when clicked will popup the file select form. Once the user has chosen the necessary file, this value will be passed back to the appropriate text field on the main form. The ability to select multiple files would be an advantage. I'm not sure if I'm explaining this clearly. Happy to elaborate/clarify if necessary!
I have scoured this site & many others for something that will work for me, but not been able to find it. If someone could point me in the right direction it would be much appreciated.
Thanks in advance,
Phil
I'm trying to create a web ui that will run some scripts on my server (Ubuntu gusty). I want the user to be able to select some files on the server via some sort of file select form. The selected file path would then be passed to a text field in another form. I envisage that the main form will have several fields including some of these file path fields. Next to these fields will be a 'select' button, which when clicked will popup the file select form. Once the user has chosen the necessary file, this value will be passed back to the appropriate text field on the main form. The ability to select multiple files would be an advantage. I'm not sure if I'm explaining this clearly. Happy to elaborate/clarify if necessary!
I have scoured this site & many others for something that will work for me, but not been able to find it. If someone could point me in the right direction it would be much appreciated.
Thanks in advance,
Phil
•
•
Join Date: Aug 2005
Posts: 148
Reputation:
Solved Threads: 13
1) finding out files on the server:
or you save all files in a thumb.
2) Selecting and printing the stuff in a textbox is made in JS. Use something like textbox.value+="; "+selected.value
or you use the html-list with multiple-entries (don't get the tag right now) and name it
important are the brakets. In php you can then get all of the selected files.
I hope that helps. If not, then, well, just ask again ^^.
Simon
PHP Syntax (Toggle Plain Text)
$dir=opendir("./thatswhatiwant/") readdir($dir) //"." readdir($dir) //".." do{ $file=$readdir($dir); echo $file."<br>"; }while($file!="");
or you save all files in a thumb.
2) Selecting and printing the stuff in a textbox is made in JS. Use something like textbox.value+="; "+selected.value
or you use the html-list with multiple-entries (don't get the tag right now) and name it
PHP Syntax (Toggle Plain Text)
... name="files[]"
I hope that helps. If not, then, well, just ask again ^^.
Simon
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: plz help php javascirp roblem
- Next Thread: 'update' select menu
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 access alexa apache api array beginner broken cakephp checkbox class clean clients cms code convert cron curl database date directory display dissertation dropdown dynamic echo$_get[x]changingitintovariable... email encode error fairness file folder form forms function functions google hack href htaccess html htmlspecialchars image include indentedsubcategory ip javascript joomla legislation limit link local login mail memberships menu methods multiple multipletables mysql mysqlquery network newsletters oop open passwords paypal pdf persist php provider query radio random redirect remote script search secure server sessions simple sockets source space spam sql system table tutorial upload url user variable video voteup web youtube





