| | |
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 |
5.2.10 action apache api array beginner beneath binary broken cakephp checkbox class classes cms code cron curl database date destroy display dynamic echo echo$_get[x]changingitintovariable... email encode error fcc file files folder form forms function functions google header howtowriteathesis href htaccess html image images include insert ip javascript joomla limit link local login mail memberships menu mlm mod_rewrite multiple multipletables mysql mysqlquery neutrality oop open passwords paypal pdf php provider query radio random record remote rss script search server sessions sockets source space sql strip_tags syntax system table template thesishelp tutorial update upload url validator variable video voteup web window.onbeforeunload=closeme; youtube





