Hi,
I was hoping someone could explain to me what I need to do to display the correct php file in my iframe.
It is only taking the last file from the directory and I need it to take the correct one (the link next to the Open button) when clicking Open.
This is my code:
#content { position: absolute; float:left; left:350px; width:500px; margin-right: 5px; margin-top:120px; text-align:center; top:0px; background-color:#d7d7d7; }Sample Files
<li><span><strong>Sample Files</strong></span>
<ul>
<li><a href="?/assessment/index.cfm">2011</a>
<ul>
<li><a href=<?php
$path = “/home/wwwbric/public_html/Test_Files/2011/”;
$dh = @opendir($path);
$files = array();
while (false !== ($file = readdir($dh))) {
array_push($files, $file);
}
sort($files);
foreach ($files as $file){
if ($file != “…”) {
echo "
";
}
}
?>
Here is the url: http://www.bricksandmix.com/Test_Files/index.php
I would really appreciate your help.