I have this PHP and it works great, just want to add a select all button and reset I am not that good at php can I get some help please?
THANK YOU for the help in advance
<?php
$currentdir = getcwd();
chdir("/****/*************/**/*****/*/*/**");
$grmx= 'Music ';
$filelist = glob("*.mp3");
if(empty($filelist))
{
echo "Sorry DIR is loading new songs at this time...";
}
else
{
echo "<form action=\"****************\" method=\"POST\">\n";
echo "$grmx<br />\n";
echo "<div style=\"height:200px;width:400px;overflow:auto;font-size: small;Arial, Helvetica, sans-serif;color: #0066FF;border:1px solid #99CCFF;\">\n";
foreach($filelist AS $file)
{
if(is_file($file))
{
echo "<input type=\"checkbox\" name=\"checkfiles[]\" value=\"$file\">$file<br />\n";
}
}
echo "</div>\n";
echo "<button type=\"submit\">Load Player</button>\n";
echo "</form>\n";
}
chdir("$currentdir");
?>
<body style="color: #0066FF">