Re: Populate picklist from directory and return file name
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Populate picklist from directory and return file name

From: Sandman <mr@sandman.net>
Date: Wed Sep 14 2005 - 13:53:08 CEST

In article <1126636683.912701.98450@g47g2000cwa.googlegroups.com>,
 "sunbum" <mbrashars@gmail.com> wrote:

> No, it worked great!
>
> I think our messages just crossed.
>
> It was the back slashes in my file path. Your code was perfect :)
>
> Do you have any pointers on this....
>
> > One last thing to bug you..... what holds the final selection of the
> > file? is it $file[select] ?
> > and what would signal that I am done selecting and want to do something
> > with the value?

You are outputting a form, that will look something like this:

<select name='file'>
    <option value='bonjour.txt'>bonjour.txt</option>
    <option value='hello.txt'>hello.txt</option>
</select>

When you submit that form, it will be put in $_GET["file"] on the receiving PHP
script.

-- 
Sandman[.net]
Received on Mon Oct 24 02:10:03 2005