Opening Word Docs etc from drop down list (Intranet)
Posted: Thu Feb 28, 2008 4:16 am
I have managed to create a list of hyperlinks that work opening any kind of document...
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.
Any help to a relative novice would be gratefully received.
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>";