What I would like to do is open docs from a dropdown list... I have poulated the list and it works for pdf's, but for doc or xls files, it fails.
Code: Select all
echo "<select name='filelist' id='filelist' onchange=\"window.open(filelist.options[filelist.selectedIndex].value)\"> ";
echo "<option value='' selected></option>";
foreach ($filearray as $value) echo "<option value='$path/$value'>$value</option>";
echo "</select>";