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 != '.' && $file != '..')
>>
>> $fileName = str_replace('.mov', '', $file);
>> echo '<option value="' . $file . '">' . $fileName .
>>'</option>';
>> closedir($handle);
>>}
>>?>
>>
>>And it does display the name in the menu... so that is a good start,
>>but the link doesn't work when selected. So I am assuming hte code does
>>need those brackets, and I rather need to open the opening one...
>>
>>d
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php