to show file from directory in dropdown php code
<?php
echo "<select name='files' id='examples'>";
$files = array_map("htmlspecialchars", scandir("C:/xampp/htdocs/canvg-master/svgs"));
foreach ($files as $file)
echo "<option value='$file'>$file</option>";
echo "</select>";
?>
<?php
echo "<select name='files' id='examples'>";
$files = array_map("htmlspecialchars", scandir("C:/xampp/htdocs/canvg-master/svgs"));
foreach ($files as $file)
echo "<option value='$file'>$file</option>";
echo "</select>";
?>
No comments:
Post a Comment