|
Posted by Randy Webb on 07/26/06 11:47
PSI_Orion said the following on 7/26/2006 7:33 AM:
> I am writing a database which I edit locally using PHP / MySQL / JavaScript.
> What I currently do is to list all my DVD covers from a single folder into a
> drop box but what I would LIKE to do is to have a browsing facility (similar
> to uploading files) which is obviously a lot quicker. However, what I need
> is not an upload file form object, rather a simple click button which will
> open a browser, allow me to select a file and return the name of the file -
> just the file not the full directory structure. Is it possible to either
> just get the file upload form object to return just the name or, using
> either PHP or JavaScript write a function that will do what I need?
>
<input type="file" onchange="someFunction(this.value)">
function someFunction(fileName){
alert('The file name is ' + fileName)
}
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Navigation:
[Reply to this message]
|