[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Dustin Krysak
I gave it a go, and I got the error: Parse error: parse error, unexpected '}' This was on the last }. Now I am brand new at php, but should there not be an opening and closing curly bracket? in this code there are one { and three } So I made my code: ?php if ($handle = opendir('../../../mov'))

Re: [PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Daniel Clark
With the SELECT drop down, you'd need a submit button, and then the value of $file would be passed to the next page and read. There you could open that file. So I made my code: ?php if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle))) if ($file !=

[PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Torsten Roehr
Dustin Krysak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I gave it a go, and I got the error: Parse error: parse error, unexpected '}' Sorry there are some braces missing. Please try this: if ($handle = opendir('../../../mov')) { while (false !== ($file = readdir($handle)))