You are here: Re: File Browser Form Tool « PHP Programming Language « IT news, forums, messages
Re: File Browser Form Tool

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация